From the course: Python Data Structures: Sets and Frozen Sets
Unlock this course with a free trial
Join today to access over 24,500 courses taught by industry experts.
Understand set theory with an example - Python Tutorial
From the course: Python Data Structures: Sets and Frozen Sets
Understand set theory with an example
- [Instructor] Let us discuss a case study to understand set theory by example. Does this picture remind you of Lego blocks? You are given a heap of colorful Lego blocks. You are free to explore your creativity and build what you want. Heap of blocks is, however, difficult to manage, so you decide to divide this heap of blocks into three groups, group one, group two, group three. So that the little blocks don't get lost, you are further asked to solve some problems and give the insights about the blocks, and then you are free to play and build what you want. These are some questions that you need to answer to give some insights about the blocks.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Understand set theory with an example45s
-
(Locked)
Find all the elements present in different sets4m 30s
-
(Locked)
Find the common elements present between the sets4m 22s
-
(Locked)
Determine the difference between two sets4m 14s
-
(Locked)
Determine the symmetric difference between two sets2m 6s
-
(Locked)
Determine whether two sets have any common elements1m 14s
-
(Locked)
Determine whether one set is a subset of another1m 41s
-
(Locked)
Determine whether one set is a superset of another2m 36s
-
(Locked)
Solution: List unregistered students1m 20s
-
(Locked)
-
-
-
-
-
-
-