Understanding Python Dictionaries
In python, a dictionary is a data structure that contains an unordered collection of key/value pairs. In this post, we will discuss how to define and work with dictionaries in python.

Let’s get started!

Dictionaries in python are defined using curly braces ‘{}’. We will start by defining a dictionary that contains two keys. The first key will be called ‘News’ and it will map to a list of news article headlines. The second key will be called ‘Clicks’ and it will map to a list with the number of times the article was clicked :

news_dict = {"News":["Selling Toilet Paper During the Pandemic", "How to Reopen Gyms?", "Covid-19 Risk Based on Blood Type?"] , "Clicks":[100, 500, 10000] }

If we print our dictionary, we have:
['Sadrach Pierre']
['Data Science', 'Python', 'Technology', 'Programming', 'Software Development']