In this python Beginner tutorial, we will briefly take a look at how to work with python set effectively. python sets are unordered, unindexed collections of items and they contain no duplicates. python sets also doesn't support slicing because they have no index in the collection. we also have to understand that, once sets are created their items can not be changed. last knowing the mathematical notions in python sets can help you to perform and solve basic math problems as a student or an individual learning python.
CHANNEL LINK - / @dky_code
MAIN VIDEO LINK
youtube video - • how to work with python set effectively | ...
code - https://github.com/Dicksonyankey/YouT...
Some other video the might be helpful.
tuples in python - • Python tuple and how to create and use the...
lists in python - • Python list and how to use and manipulate ...
dictionary comprehension - • Dictionary Comprehension - How they work a...
VIDEO CHAPTERS
0:00 - Video intro
0:28 - what are python set
1:29 - Some important Note
1:51 - Creating a set in python
3:27 - Creating a set with items
4:51 - Why python set doesn't support slicing
5:17 - Using the Add Method
6:45 - Using the Update Method
8:19 - Using the Remove/Discard Method
10:21 - difference between Remove/Discard Method
11:51 - Mathematical Notions in sets
12:05 - The Union Method
13:21 - The Intersection Method
14:49 - The Difference Method
17:12 - The Issubset Method
18:49 - The Isdisjoint Method
20:38 - Main Takeaway
HAPPY CODING
▶️ You Can Find Me On:
linkedIn - / dickson-kwasi-. .
Instagram - / dky_code
TikTok - / dky_code