Course “Python: Dictionaries and Sets”
Course updated on August 5, 2024
Access this and all courses with a subscription
What's included
Description
In this course, you will study dictionaries (collections of key-value pairs) and sets (a related type of collections). You will learn their internal structure and the syntax for creating and modifying them. As a result, you will learn how to create and copy data from dictionaries and manipulate dictionaries with keys, values, and item iterators. You will learn how to perform various operations on sets: union, difference, intersection, and subset checking. In this course, you will gain the skills necessary to work with hash structures in Python, which you can use to describe entities in any domain. To make learning easier, you should complete the Python Fundamentals and Python Lists courses before taking this course.
You will learn
- Understand the structure of dictionaries
- Use dictionaries, create and change them
- Create and manipulate sets
- Process dictionaries with keys, values, and items iterators
Syllabus
1 | About the course Getting to know the goals, objectives, and theme of the course |
2 | Syntax Learning how to declare dictionaries, access elements, and iterate keys |
3 | Changing data in the dictionary Learning how to change items and add data from one dictionary to another |
4 | Initializing new values and defaultdicts Introducing the `defaultdict` dictionaries |
5 | Multitudes Introducing sets as a new data type |
6 | Changing sets Learning how to change, clear and copy sets |
7 | Operations on sets Finding out how to compare sets and what you can get from this comparison |
8 | Methods of set objects Learning how to modify a set in place based on data from another set |
9 | Hash tables Delving into the actual structure of dictionaries |

- Run code right in the browser
- Lifetime access
- Learn at your own pace
Access this and all courses with a subscription