Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

accessing values in dictionary python

dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
print(dict['Name']) # Zara
print(dict['Age']) # 7
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #accessing #values #dictionary #python
ADD COMMENT
Topic
Name
1+9 =