create dictionary in Python
create dictionary in Python
Dictionaries is use to store data in form of Key:Value pairs. Dictionaries do not allow duplicate and it can be created with curly brackets. Let’s see an example of it.
- dict={'a':1,'b':2,'c':3,'d':4}
- print(dict)
Comments
Post a Comment