Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python3 create dictionary

#!/usr/bin/python3

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