Python Dictionary

Multimedia –  What is dictionary? When you search on google about dictionary generally, it says

a book or electronic resource that lists the words of a language (typically in alphabetical order) and gives their meaning, or gives the equivalent words in a different language, often also providing information about pronunciation, origin, and usage.”

 

It is the same or connect in some way hence it is called ‘python dictionaries’ it only matters on how you look at it.

 

Just like in the definition Python dictionaries are just like lists but not so much. Python are used in curly bracket, they are unordered and changeable, and, there is no duplicate items allows.

 

For examples :

thisdictionary = {

 “Occupation”: “Doctor”,

 “Age”: “18”,

 “Year of birth”: 2001

}

Leave a Reply

Your email address will not be published. Required fields are marked *