Python

Different Ways to Create a Dictionary in Python

Dictionary in Python is a very important data-structure which can have unordered list of key value pairs. See a dictionary d={2:4, 3:9, 4:16, ‘India’:’Delhi’} In dictionary d, you can key:value pairs this is one of the ways to create a dictionary. However, there are several ways to create a dictionary using dict() function. In this

Different Ways to Create a Dictionary in Python Read More »

©Postnetwork-All rights reserved.