Course “Python: Dictionaries and Sets”

Course updated on August 5, 2024

Subscribe

Access this and all courses with a subscription

What's included

Theory: 9 lessons
Exercises: 0
Questions: 0
Self-study tasks
Extra materials
Extended materials for 9 lessons

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

Course Cover
  • Run code right in the browser
  • Lifetime access
  • Learn at your own pace
Subscribe

Access this and all courses with a subscription