Building upon the Python If, Else, Elif Statements: Multiple Conditions lesson, you’ll continue to develop your Python programming skills by learning about dictionaries and how to use them in the context of data science. You’ll apply what you learn in this lesson in the upcoming Python Dictionaries and Frequency Tables lesson to build frequency tables to check how often a certain event occurs in a dataset.
In this lesson, you’ll learn how dictionaries are a useful data structure in Python. By the end of this lesson, you’ll understand the terminology related to dictionaries, such as keys and values, and you’ll be able to create and index dictionaries. You’ll also learn about the valid types of dictionary keys and the errors that occur with invalid keys.
When you finish this lesson, you’ll be more confident in your programming ability when using Dictionaries, Frequency Tables, and Functions in Python. If you feel like you need practice, think of something you can create using what you’ve learned so far; it doesn’t have to be big. It can be something small, like building your own dictionary. Or if you feel like you need more practice with dictionaries in Python—or just want to learn more concepts as it relates to dictionaries—check out this tutorial that covers the basics of Python dictionaries.
- Learn how to create dictionaries
- Learn how to index dictionaries
- Learn how to define key-value pairs
- Storing Data
- Alternative Method of Creating a Dictionary
- Key-Value Pairs
- Key-Value Pairs Continued