A couple of times in the video I said "set function" when I really should have said "set class". FYI
@vinodkumar-zf6vk6 жыл бұрын
Thats Totally Okay . your video is awesome
@jasonjluo6 жыл бұрын
can you please do an oauth2 tutorial?
@timoissakainen51572 ай бұрын
7:03 7:05 @jasonjl 8:00 😅😊😊 9:26 😅uo
@deojeetsarkar20065 жыл бұрын
I failed to search for a solution online to a question, it was nowhere but here. He is the master-answer to Python.
@helantopia6 жыл бұрын
Thank you so much for making these videos Corey! I discovered your videos after failing my exam on Python and with just a week of watching your videos I passed the retake exam with a 1,7 !!! 😍 I honestly can't thank you enough, I also really enjoy programming now :)
@coreyms6 жыл бұрын
That's awesome! Congrats on your test scores! Glad to hear you're finding it more enjoyable now. It definitely takes time, but if you stick with it then it becomes very fulfilling. Best of luck!
@randomthingz9631 Жыл бұрын
dumb shit
@TaimTeravel2 ай бұрын
@@coreyms This video might be old but it's still gold. Thank you Corey. You made learning easier.
@sajnashetty89706 жыл бұрын
Don't get sleep while watching Corey Videos :)I love his Voice.
@alexmomotov7926 жыл бұрын
Yaaay! First video in a while! Hope you keep making them Corey, you are the best Python teacher ever.
@coreyms6 жыл бұрын
Thanks. I’m going to try to get on a schedule of releasing almost every week, but it is difficult when also working on larger courses. But I will try. We’ll see how it goes.
@aloksingh4226 жыл бұрын
You are super sir ..🙏🏻 keep going
@jamesbrown65915 жыл бұрын
Your python channel is the best i've found for self-learning, thank you!
@DongWonHanDWONH5 жыл бұрын
I never have wrote any comment in KZbin video until now, but I got to say your videos are really awesome! Great help to me. Thank you!!
@coreyms5 жыл бұрын
Thanks!
@brotherlui59566 жыл бұрын
Wasn't interested in sets so far but now i know how to handle them
@deviwadala5 жыл бұрын
You are straight from heaven , free lessons and so informative , thank you !!!!
@Chris_87BC2 жыл бұрын
Great presentation, Corey! I recently used set(a1) - set(a2) to find claims in set a1 not in set a2 :) I am starting to like sets as the calculation was done super-fast. List comparison was very slow
@opalprestonshirley17005 жыл бұрын
Another great video. I not an expert but I am learning from your vids. Thanks.
@Pulsar776 жыл бұрын
An important caveat is that sets don't preserve order. So the elements of newlist = list(set(oldlist)) can end up in a different order than in oldlist. If you want to remove duplicates from a list while preserving order, use an OrderedDict: newlist = list(OrderedDict.fromkeys(oldlist).keys()) In Python 3.6 or later, you can simply use dict: newlist = list(dict.fromkeys(oldlist).keys())
@Ram-bt6yt4 жыл бұрын
Thank you very much! I was waiting for the last 1 min. Time complexity part! Sets are really powerful!
@utkarshgautam19403 жыл бұрын
ohh my god ,man i never seen anyone who teaches soo good,this guy here is awesome,im from india watching and learning from ur nice stufff man,u totally nailed it
@Arrowtake5 жыл бұрын
Thank you Corey for your great videos. You have made so many exellent videos that are such a treasure for learning python.
@xainch23605 жыл бұрын
Best instructor ever!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :)
@javiers21336 жыл бұрын
You're the best, the day I can make some money scripting, no doubt I'm going to pay you!!!!
@soumyazyx5 жыл бұрын
Hello. Request you to prepare a python tutorial on "co-routines". That will be great in clearing some air around the otherwise confusing topic.
@DarkToLight88_ Жыл бұрын
Your channel will help me pass my class. Thank you Sir!
@fahimahmed37323 жыл бұрын
such an underrated channel
@Suwarrr6 жыл бұрын
You're the best,Corey Shafer!Awesome video!
@adesuwabeckyporter36403 жыл бұрын
I love your collection of books in your wishlist and your clear interest in exploring the conscious mind. I imagine it'd be so fun to go deep with you on the topic, exploring our thoughts both in "conscious" and "altered" state, documenting our perception of both states. lol.. yes I could have said that in fewer words but.. lol.. recruiter lurkers happen.. lol
@noobinvestor31806 жыл бұрын
Hi Corey..love all your videos...No one better imo...Maybe you can add also why it takes only O(1) for a set and why we should use set while searching if order of the items is not an issue --- My personal suggestion
@coreyms6 жыл бұрын
I thought about adding more details but didn't want to make it too confusing. I probably should've provided additional material for those who are interested though. Here is further reading on how sets are implemented and why they are accessed in constant time... stackoverflow.com/questions/3949310/how-is-set-implemented
@willofirony6 жыл бұрын
At the risk of being pedantic, isn't the search operation of a random list O(n/2)? One ceases to search after finding. If the list is sorted, searching would be O(log n) worst case when using a Binary Search..
@noobinvestor31806 жыл бұрын
Hi Michael, searching a element at either end of the list will give O(1) time complexity, whereas for elements within the list will have O(n) time, by using binary search in a sorted list, yes the search time will be O(logn)
@jyothi26rab2 жыл бұрын
Thank you sir ur class was very clear and easy to understand, honestly thank u for making this vedio god bless
@anorderedhole21975 жыл бұрын
This solved a problem in a major way. Thanks.
@abhisheksharma-ib5vw6 жыл бұрын
You are the best among best...
@soumyazyx5 жыл бұрын
Thank you for your time and effort. Keep spreading the knowledge.
@nunya_bizness242 жыл бұрын
Pretty sure I'm gonna give this man a shoutout when I graduate
@BrendanMetcalfe4 жыл бұрын
The intersection stuff was interesting. Thanks!
@mdsharukkabirsazib8 ай бұрын
simple and best to understand thanks.
@hubertcombomarketing26934 жыл бұрын
Great Python Sets Tutorial. Thank You.
@MUZIXABA6 жыл бұрын
Another great tutorial from Mr Schafer.
@shazkingdom17025 жыл бұрын
This is good for observing patterns... i 🤔 ..... best Channel!
@aditipatil73774 жыл бұрын
Awesome. To the point and neatly explained. Great job !
@pavelivakin81776 жыл бұрын
Thank you! Awesome work. You motivate me to refactor my «membership test» stuff :)
@guilhermehx71596 жыл бұрын
Your videos are very helpful Corey, thanks!
@PaulSmith-zs5je6 жыл бұрын
Who learnt something new? Great video
@thebuggser27523 жыл бұрын
Another great video! Might want to mention set equality.
@matanerez82215 жыл бұрын
Great video! love the simple examples and the detailed explanations. Well Done!
@DebojitBhadra6 жыл бұрын
As always your tutorials are best
@nomanabid71135 жыл бұрын
16:13 shame on those two for not having awesome job or staying in shape xDDDDD
@borninthedark79154 жыл бұрын
I lol'd.
@1polyron13 жыл бұрын
@@borninthedark7915 I combusted
@mohammadakhtar97926 жыл бұрын
As always great video Corey!
@victornikolov5376 жыл бұрын
I love to watch your videos, Corey. Keep going! You're the best I know. Pyramid stuff soon? :)
@MrGamit12095 жыл бұрын
Very good video. Thanks
@narasimharajuballapura14 жыл бұрын
just watched this video and subscribed : )
@nikhileshsaggere3 жыл бұрын
Excellent tutorial
@thattoofunny6 жыл бұрын
You're the best... Keep it coming....
@ahmedjumaah97275 жыл бұрын
Thanks for the good content Corey, helping a lot. Would be very helpful to prepare some videos about common algorithms for coding interview questions.
@Happymoon7896 жыл бұрын
Thanks, a clear instruction on set👍
@rudela99004 жыл бұрын
Would you be so kind as to go over the very basics of neural networks, using very basic number sequences and involving nothing more than numpy, if necessary? Thanks a lot for a great job.
@thengakola62174 жыл бұрын
I didnt know this duplicating method......thanks
@abhisheksharma-ib5vw6 жыл бұрын
Ultimate ....keep up the good work
@dishydez3 жыл бұрын
This was great! Thanks!
@henryyao48604 жыл бұрын
Thank you!
@trava41565 жыл бұрын
This is awesome! Thank you
@orkhanahmadov99633 жыл бұрын
very informative video thank you so much
@gianfrancomirto87654 жыл бұрын
Perfect Video!!! Just wondering is there any videos you know that look at the underlying code of the methods of add add,discard and such?? Thank you
@ivanniku22045 жыл бұрын
Really usefull bro thanks
@frankliva74383 жыл бұрын
thanks so much buddy!!! it really helped
@AdamSmith-ux5if6 жыл бұрын
Hi Corey! You’re fckn awesome man! Thanks for the videos!
@coreyms6 жыл бұрын
Thanks!
@user-pt4vn5hr2z5 жыл бұрын
Corey thank you!.
@Mikey-nh9jf6 жыл бұрын
Great stuff man!
@coreyms6 жыл бұрын
Thanks!
@priyabratasaha43396 жыл бұрын
Hello Corey, Love your videos. I am currently focusing on metaprogramming in python. Your video on decorator helped a lot. can you suggest some good resources about meta classes and descriptors. Thanks a lot for your effort
@monzuruljhoney0014 жыл бұрын
Why does SET take O(1) ? Is it usung Hash Algorithm or some others?
@jagmeetsond60753 жыл бұрын
please keep up the good work, thanks a lot!
@tranthanhbao99786 жыл бұрын
Great video !!
@raraju7896 жыл бұрын
Please do a video on multiprocess
@klaik304 жыл бұрын
One thing I don't really get is how some of these inbuilt functions can be so much faster than any other function you could yourself write. Doesn't the program have to do the same thing but more when I first convert the list into a set then the set into a list again? Doesn't it still have to go through every element and check if it has already saved a certain value? What magic is happening behind the curtains?
@barbarairena67146 жыл бұрын
can so give me an practical example of how to use O(n) and O(1) ? thanx
@annakh95435 жыл бұрын
thank you, very good explanation :)
@smoothbeak4 жыл бұрын
Great info!
@lephucnguyen87505 жыл бұрын
Thank you so much, this video is very helpful!
@jessicabrown19874 жыл бұрын
Thank you so much for these
@KlinikXOfficial4 жыл бұрын
would of been awesome if you added union method in there.
@akshadrathod92033 жыл бұрын
nicely explain!!
@pakapeta77722 жыл бұрын
Thanks man!
@ramanak22134 жыл бұрын
Thank u
@bingolio2 жыл бұрын
Excellent, thx.
@kiraal36194 жыл бұрын
for min 7:44, i tried something else which is way complex XDD. but i just would like to share s1={1, 2, 3,4,5,6} s2={5,2,7} s3={1,2,5,7} first_intersection=s1.intersection(s2) ## intersection between S1 and S2 second_intersection=first_intersection.intersection(s3) ## intersection between S1,S2 and S3 print("intersection between S1 and S3",first_intersection) print("intersection between S1,S2 and S3",second_intersection)
@convolucion19815 жыл бұрын
Great!
@ashok95884 жыл бұрын
best ever
@sagarmehta35156 жыл бұрын
Hi Corey, could you please add some tutorials on the magic methods ( setattr, getattr, setattribute, getattribute )
@nesrineb216 ай бұрын
excellent !!!
@jasondeb26783 жыл бұрын
could you please explain big O' notation in a separate video, that would be very helpful?
@nocturn20025 жыл бұрын
how can someone dislike the video
@IsaacC206 жыл бұрын
I'm surprised you didn't cover how to make sets of custom user objects.
@mihaiconstantin68155 жыл бұрын
Hey! You're videos are fantastic, but trying some things by my self while watching your video, i've come up with this: ss1 = {1,2,3,4,8,9,11} ss2 = {2,3,4,5} ss3 = {3,4,5,6} ssx = {2,3,5,6} ss5 = ss1.difference(ss2, ss3, ssx) print (ss5) #output -> {8, 1, 11, 9} Please explain me why this order?
@iToastDevice3 жыл бұрын
the return output from sets are not in any specific order
@sfr362 жыл бұрын
we use sets where the order is not important. it has random order assigned to it. this is why indexing is also not supported like lists
@owen70814 жыл бұрын
Your awesome, this helped a lot.
@MouhamedSourangProfile3 жыл бұрын
Amazing!!
@programmer48334 жыл бұрын
I do have a question : I didn't understand the last comment you made about O(n) for lists and O(1) for sets. What does that mean ?
@sebastiancristicastillo4794 жыл бұрын
That is a notation that says how much time it will take to complete, depending the size of the operation. being O(n) the time the operation takes to complete increase as the list grow in size, but O(1) is constant and will not be affected by the size of the data set. You can search for more info about it looking for "Big O notation"
@DevastaingDj6 жыл бұрын
Thank you so much!
@hamzashabbir35892 жыл бұрын
Why Set has O(1) Complexity? Didn't understand that. Lits is Fine O(n) as it traverses each element to find a value.
@ghanteyyy6 жыл бұрын
Hi Corey! Thanks for the awesome videos. If you don't mind, I really need your help to learn sending attachments like photos, videos, documents ,etc in email using email module.
@gtg75296 жыл бұрын
Thanks your video! and because your channel does not update more than 1 month, i am very worry about u!
@coreyms6 жыл бұрын
I’m just working on larger series’. I’m going to try to put out more smaller videos like this once a week while working on larger courses from now on
@subashchandrapakhrin35373 жыл бұрын
Good One
@expat20103 жыл бұрын
IDK about anyone else, but generally I am working with datasets. SO for me, what is missing from this video and many others, is how to use a function like this working with a dataset. For example, how to search a column for a member of a set.
@LearningOrbis3 жыл бұрын
There is no column for the number in set. There is no order of elements inside the set. You can watch detailed videos on different Data Sets at my Channel :)
@carpediem734 жыл бұрын
thanks
@foreversleepy43793 жыл бұрын
Wouldn't creating a list from a set be O(n) time, though? So while using a set to remove duplicates is better, if you're casting it to a list, would it really make much difference?
@babysuyash4 жыл бұрын
Thank you for the great explanation !! I understood everything about sets but I got confused when you did set(gym_members).intersection(developers) in 14:58 ...I was confused whether developers , a list , should be changed into set before intersection..... is developer already changed into the set or intersection is done between list and a set?
@CosmosWorld4 жыл бұрын
As you see, the program has no problem with that, so i say, that if you intersect a set to a list, it won't produce any problem.
@akhilpadmanaban32422 жыл бұрын
Hey, what is the time complexity of list(set(l1) ),,...Is that O(n)