View Notes Here - http://www.evernote.com/l/AbEBhf3XgnJ...
In this session, I have explained and practically demonstrated about Set in Python Collections.
The following topics are covered in this session:
What is a Set?
How Set is one of the Collection Data types?
Creating a Set using syntax {}
List Versus Tuple Versus Set
Set is un-indexed
Set is un-ordered
Set doesn't allow duplicates
Printing Set
Finding the type of Set
Finding the length of Set
Adding values to the Set using add()
Adding multiple values to the Set at a go using update()
Removing the elements from the set using remove()
Removing the elements from the set using discard()
remove() versus discard()
Using pop() to remove the elements from the set in a random way
Removing all the elements from the set using clear()
Deleting the Set using del
Using for loop with range() with Set
Using in and not in operators with Set
Set can nest only Tuple
Set cannot nest List and Set
Converting a List to a Set using set()
Union, Intersection, Difference and Symmetric Difference of Set
min(), max(), sum() in-built functions in the Set
Смотрите видео Set - Collections (Python Tutorial - Part 36) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь QAFox 13 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,092 раз и оно понравилось 25 людям.