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.

  1. dict={'a':1,'b':2,'c':3,'d':4} 
  2. print(dict) 

Comments

Popular posts from this blog

Programmingshark index 6

Proassignmenthelp index 12

Proassignmenthelp index 27