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

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.

Contents