Real Python
  • Start Here
  • Learn Python
    Start Learning
    Your Learning Plan →Your personalized Python learning plan Python Tutorials →In-depth articles and video courses Learning Paths →Guided study plans for accelerated learning
    Practice
    Quizzes & Exercises →Check your learning progress Browse Topics →Focus on a specific area or skill level Reference →Concise definitions for common Python terms
    Get Help
    Code Mentor →BetaPersonalized code assistance & learning tools Office Hours →Live Q&A calls with Python experts Community Chat →Learn with other Pythonistas
    Go Deeper
    Live Courses →Live, instructor-led Python courses Books →Round out your knowledge and learn offline Podcast →Hear what’s new in the world of Python
    Unlock All Content and Become a Python Expert →Get unlimited access to all Real Python has to offer
    Unlock All Content →Become a Python Expert
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Contributor
  • Search
/
  • Join
  • Sign‑In

Sets in Python (Quiz)

James Uejio
Using Sets in Python James Uejio 08:30
Recommended Tutorial Course Slides (.pdf) Sample Code (.zip) Ask a Question
  • Contents
  • Discussion

Become a Member to take the quiz.

Become a Member to join the conversation.

Course Contents

Overview
95%
    Sets in Python (Overview) 01:16
    What Is a Set? 00:58
    Immutable vs. Hashable 03:14
    Defining a Set in Python 02:11
    Length, Membership, and Iteration 03:07
    Exercise: Check if All Items Are Unique 08:00
    Union, Intersection, and Difference 06:49
    Exercise: Find Common Items 08:00
    Disjoint, Subset, and Superset 05:37
    Exercise: Check Course Progress 08:00
    Add, Remove, Discard, Pop, and Clear 02:44
    Different Update Methods 05:56
    Exercise: Remove Sold Items 08:00
    Augmented Assignment (Sets) 01:32
    Frozen Sets 02:49
    Augmented Assignment (Frozen Sets) 01:28
    Why Sets? 00:55
    Set Speed Test 05:54
    Sets in Python (Quiz) 08:30
    Sets in Python (Summary) 03:11

© 2012–2026 Real Python ⋅ Privacy Policy