Sets in Python with Set Operations like union and intersection - Python set discard vs remove

Опубликовано: 24 Февраль 2021
на канале: Cognitive Programmer
716
13

Welcome to the video series on python programming, In this series I'm talking about multiple interesting topics of python programming language.

This video is all about Python Set and how to make use of the python set. Before going into the details of programming, I've talked about some of the basics of set and I've explained the set in a way where it easy to understand the purpose of the python set.

I've also talked about difference between python set and list as well as between python set and tuples. There are multiple ways to remove data from the python set and in this video you'll find how to use pop, set remove and set discard function.

Finally I've also talked about mathematical functions that can be done on set which python set union and python set intersection

Hope this video will help you in expediting your learning journey. Here are the contents of this video

Timecodes :

0:00 - Introduction to Python Set
0:41 - Understanding python set using day to day examples
1:43 - Python set is an unordered collection of distinct hashable objects
2:09 - Hashable objects in python
3:41 - Creating and using Python Set
4:28 - Appending or adding data in the python set
5:24 - Updating a python set with multiple values
5:45 - Python Sets are unindexed
6:19 - Removing items from the python set
7:11 - Mathematical operations using Python Set
7:55 - Union between Python Sets
8:12 - Intersection between python sets


#python #programming #machinelearning #software #softwaredevelopment #programming #coding

About Me i.e. An Insightful Techie

Greetings and Thanks a lot for checking out my YouTube Channel. I’m Deepak K Gupta (Daksh). This channel is a medium for me to share my learnings and journey as a Techie so that you not only learn from my experience but also from my mistakes

As a techie I am closely associated with software development, so most of my content will revolve around Programming Languages, AI, Machine learning and Databases. I share things which will help you learn, remember and use these things in an effective and efficient way.

As a Techie, I also know that there is a life beyond software development and it has a profound impact on our career as well as on our well being. I also share those learnings which I feel are worth sharing with the intention that it MAY help you in taking better decisions in your life.

Last but not the least, I'm a traveler and explorer by nature. I would like to take you with me on some of the interesting journeys around the world. Believe me there is more to learn outdoors than indoors

Hope you’ll like my contents and will be part of my journey 🙏

SUBSCRIBE - https://www.youtube.com/AnInsightfulT...
INSTAGRAM - https://www.intagram.com/AnInsightful...
Twitter -   / awisetechie  
Facebook -   / aninsightfultechie