28 Aug  Admin

A dictionary is a collection which is unordered, changeable and indexed. Each key is separated from its value by a colon (:), the items are separated by commas, and the whole thing is enclosed in curly braces. An empty dictionary without any items is written with just two curly braces, like this: {}.

Example

thisdictionarie =    {
  “name”: “rohan”,
  “age”: “23”,
  “year”: 1996
}
print(thisdictonarie)

Output

{‘name’: ‘rohan’, ‘age’: ’23’, ‘year’: 1996}