What are Sets in Python? Python Tutorial for Absolute Beginners | Mosh

preview_player
Показать описание
What are sets in Python? How to use sets in Python? This Python tutorial explains it.

Python Exercises for Beginners:

Python Cheat Sheet:

Want to learn more from me? Check out my blog and courses:

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

Always great to see easy to understand courses for beginners!

activestate
Автор

It was not in our school syllabus thanks for the knowledge

debasisht
Автор

I have no word to say thanks...you are amazing ..teacher ..

osho
Автор

are these topics not included in the 2 hours of python course you uploaded are you gonna upload short clips of full course here if yes then it will be a great help

Feetrex
Автор

Mosh taught me to code, i used his website to do his full python course, ill be forever grateful to this man, he'll never know who i am, but he changed my life. Thanks Mosh

passportbro
Автор

Hi, Can you please help me with this how to concatenate multiple rows into single cell separated by comma

nandineeuma
Автор

Is declaration of sets & dictionary same? Like both of them uses { }
a = { }
For both is correct right ?

dr.drakon
Автор

Hi Mosh please make tutorial on spring boot and especially spring security .It will be very useful for lots of people, especially of you are doing :)

prashanttiwari
Автор

Hi mosh please upload your react course on udemy, . Lots of students are waiting fir your course, because when I type mosh in udemy search input that search suggestion is automatically showing your react course suggestion, but not found, please upload your react course in udemy????

hiteshchoudhary
Автор

Set are unordered, have no durplicates, and don’t support indexing as a result.
Exactly the same as mathematical sets with union, and intersection operations

tonalddrumpboe
Автор

a=set("python", "data") is an invalid declaration
but
a={"python", "data"} is valid declaration
why is this so?? even when both are for declaring sets

debjyotichattopadhyay
Автор

Search for Arena Python swimming goggles brought me here. Not what I expected to find 🤔

Rahamuseo
Автор

Thanks Mosh!

A tiny experiment you could add is something like

knaagdir = {1, 4, 8, 3, 6, 4}
print(type(knaagdir))
print((knaagdir)) #aware of redundant parentheses but too lazy to remove them

Keep up the good work!

rubengeertvandenberg
Автор

numbers = (1, 1, 2, 3, 4)
first = set(numbers)
second = (1, 5)

print(first | second)

When I do it, the vertical line is not accepted, it remains the same collor as first and second. How come? I believe this code is the same as what you did.

henrycederblad
Автор

Hey buddy I just commented on another video . I now see it is not you fault. I was on the wrong account ... sorry.

sammalta
Автор

Mosh please upload your courses to Udemy, they are more affordable for people from poor countries like mine.

adrian-
Автор

this is not a beginner friendly course, he doesnt stop to explain what he's doing he just throws it all at you. Mosh sucks.

isorozco