SETS in Python (Create, Add, Access, Update, Remove, Check, Loop, Join, Methods)

preview_player
Показать описание
🎓Welcome back to Digital Academy, the Complete Python Development Tutorial for Beginners, in which you will discover a new Data Types: Sets in Python - and all of the operations you can perform on Sets in Python (Create, Add, Access, Update, Remove, Check, Loop, Join - and multiple other methods)

▬▬▬▬ 📖 Content ▬▬▬▬

🖥️ Set in Python is one of the most frequently used Data Types in Python - amongst List, Dictionary and Tuple. In fact, Set in Python is a collection of items, which is: not indexed, unordered, contains only unique elements, and is of mutable type - so it can be changed, grow and shrink, once created.

Moreover, Set in Python are commonly used for computing mathematical operations, such as: Union, Intersection, Difference, and Symmetric Difference Operations - or do not store ANY duplicate members!

There are several ways to create a new Set. In Python programming language, the simplest way to create a Set is: to enclose all of the items, also known as elements, inside curly braces {} - and separated by commas. It can have any number of items inside, and they can even be of different Data Types - integer, float, string, boolean, or even another (immutable) object, which contains other items of different data types, and so forth.

🎯 In this video, you will discover: How to create a Set in Python? Add, Update, and even Remove items from a Set. But also: How to iterate through a Set, using FOR Loops. And, finally, different ways to join two sets - altogether.

Let's play this video, stick around and watch until the end! 👍🏻

- Digital Academy™ 🎓

▬▬▬▬ 🎬 Watch NEXT ▬▬▬▬

▬▬▬▬ 🔗 Links ▬▬▬▬

▬▬▬▬ ⏱ Timestamps ▬▬▬▬

00:00 Intro
00:09 Introduction
01:15 Python Set - Definition / Syntax
02:31 Python Set - Create a Set in Python {}
04:56 Python Set - Add / Update Items
06:15 Python Set - Access Set Items
06:44 Python Set - Remove Set Items (pop, remove, discard, clear)
08:36 Python Set - Check Items Existence (IF + in / not in Operators)
09:10 Python Set - Iterate through a Set (FOR Loops) / Set Length
10:08 Python Set - Join 2 Sets (Union, Intersection, Difference)
12:40 Python Set - Built-in Set Methods & Functions
13:28 Conclusion
14:15 Subscribe, Like, Comment & Share

#Python #Tutorial #Beginners #Set

▬▬▬▬ ⭐ FOLLOW US ▬▬▬▬

▬▬▬▬ ⚡ SUPPORT US ▬▬▬▬

Рекомендации по теме
Комментарии
Автор

🖥️Set is one of the most frequently used Data Types in Python - amongst List, Dictionary and Tuple. In fact, Set in Python is a collection of items, commonly used for computing mathematical operations, such as: Union, Intersection, Difference, and Symmetric difference operations - AND do not store any duplicate members! What do you use Sets for??

DigitalAcademyOnline
Автор

Thanks a lot for sharing this type of videos!
What a great work you are actually doing!

chloejbt
Автор

As always: Your video on Python are A MUST for Beginners and anyone willing to start programming. Keep it up 👍🏻

xJrmy
Автор

Thanks for your video on Python It's cool for me, a Beginner Keep it up

PassionsByCath
Автор

Great visualisation, can you illustrate the diff between update and union please?

Ahmad_s
Автор

Do your channel know why it's not growing now only 64 views of 16 hours this is boring this animation show your face and make your voice come out and that will be interesting ❤️but ok

gamingdavri