Working With Dictionaries In Python

We already know how to create lists, they are comma separated values. Dictionaries are also comma separated key-value pairs. Dictionaries in python are declared very similar to JSON. Have a look at the following code.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis