How to create a new dictionary in python?

To create a blank dictionary, all you have to do is to type {}.

Every dictionary is enclosed by the curly brackets.

To create a basic dictionary, you can follow following steps:

NEWDICT =  {}   #Creates a blank dictionary with the identifiable name NEWDICT which can be anything you want.

NEWDICT = {'key1':'value1'} #This is the basic dictionary with one key value pair -- both key and value must be inside quotes. 

Language: