Yellow cover of One-Dimensional Dictionaries in Python. This template resource is from 365 Data Science.

One-Dimensional Dictionaries in Python

The following template  is a program implementing a dictionary in Python where the keys are a couple of countries. The values are their corresponding capitals. Within the notebook, it is demonstrated how to retrieve keys and values from the dictionary, how to create a new key: value pair and how to loop through the keys and the values using a for-loop. Some other related topics you might be interested in are While Loops in Python, Dictionary Comprehension in Python, and Using Counter - a Dictionary Subclass in Python. The One-Dimensional Dictionaries in Python template is among the topics covered in detail in the 365 Data Science program.  

Hristina Hristova
Course Author

Who is it for

Machine Learning Engineers, Data Scientists, Data Analysts, Data Architects, and BI Developers and anyone who wants to organize data using key: value pairs will find this free template helpful.

How it can help you

Dictionaries are a very useful datatype that helps organize data using key:value pairs. Each value could consist of one or more items - this divides dictionaries into one- and multi-dimensional ones. This template gives an example of a one-dimensional dictionary storing countries as keys and their respective capitals as values.

Join 2M Students and Start Learning from the best

The 365 Data Science program is great for beginners. It gives in-depth knowledge and clears every concept. After every lecture, some exercises are given for students to complete for practice, and solutions also. I would highly recommend this program to everyone who wants to be a data scientist and brush up their skills.

harshita sharma Pakistan

The 365 Data Science course is outstanding, it has an outstanding interface and awesome courses from a basic to an advanced level. I really appreciate the quality of the material and the content of this Data Science course!! Thanks to the 365 Data Science team!

Rakesh Patel United States

The 365 Data Science program was excellent. It does meet my expectations 100%. I do thank the 365 Data Science Team for putting this great work together in one package & with a very reasonable price. Hands down, you are the best! Please, keep this great work up!

Amrouni France

One-Dimensional Dictionaries in Python