Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python3 create dictionary

#!/usr/bin/python3

dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
print ("dict['Name']: ", dict['Name'])
print ("dict['Age']: ", dict['Age'])
Comment

PREVIOUS NEXT
Code Example
Python :: pd datetime 
Python :: pd series resample 
Python :: nested dict 
Python :: python convert py to exe 
Python :: get user id discord.py 
Python :: python range for loop 
Python :: python remove warnings 
Python :: how to change directory in python 
Python :: text python 
Python :: python combine if statements 
Python :: django user_passes_test 
Python :: how to add a key in python dictionary 
Python :: python destructor 
Python :: palindrome python 
Python :: check how many letters in a string python 
Python :: global variable in python 
Python :: install python 3.7 
Python :: calculation in python 
Python :: python range of array 
Python :: python find lcm 
Python :: camel case to snake case python 
Python :: global python 
Python :: getting url parameters with javascript 
Python :: creating an object in python 
Python :: for loop to while loop in python 
Python :: python instagram bot 
Python :: how to sleep() in python 
Python :: iterating over lines in a file 
Python :: python loop 3 times 
Python :: django-chartjs 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =