Answers for "how do you read from a dictionary in python"

0

how do you read from a dictionary in python

#!/usr/bin/python

dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
print "dict['Name']: ", dict['Name']
print "dict['Age']: ", dict['Age']
Posted by: Guest on March-01-2021

Code answers related to "how do you read from a dictionary in python"

Python Answers by Framework

Browse Popular Code Answers by Language