{"id":3500,"date":"2023-10-22T15:53:13","date_gmt":"2023-10-22T10:23:13","guid":{"rendered":"https:\/\/python-programs.com\/?p=3500"},"modified":"2023-11-10T11:54:40","modified_gmt":"2023-11-10T06:24:40","slug":"python-different-ways-to-create-dictionaries","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-different-ways-to-create-dictionaries\/","title":{"rendered":"Python : 6 Different ways to create Dictionaries"},"content":{"rendered":"

How we can create dictionaries by multiple ways in python ?<\/h2>\n

Dictionary in python is one of the important datatype which is used to store data values in key : value<\/code> pair.<\/p>\n

Syntax of dictionary :<\/strong><\/p>\n

dictionary_name = {key1: value1, key2: value2}<\/pre>\n

where,<\/p>\n