How To Use Sets in Python (Python Tutorial #13)

preview_player
Показать описание
Python tutorial - how to use sets!
Рекомендации по теме
Комментарии
Автор

Hey guys, my flight to Japan is at the end of August. So, I'm planning to make a few more videos before my trip. Cheers!

CSDojo
Автор

Also, I just set up a subreddit so people can hopefully ask each other any programming-related questions. Feel free to use it any way you'd like!

CSDojo
Автор

Your videos teach me a lot..I have started learning from your videos 2 days back..and now I know much better python now

neeleshjaiswal
Автор

There's simpler way of removing duplicates from list:
new_set1 = set(given_list1)

krzysik-yt
Автор

Fantastic teacher. I have struggled with coding for 4 years, and you've really helped a lot. Such a legend, thank you so much.

omarshafi
Автор

After taking a long break from learning to code and coming back to it, I am truly learn. I figured out the sum function by tinkering and researching before you showed us that it was the shortcut. I feel so accomplished!

BrianGlaze
Автор

i binge watched the series in two days!!! It's simply amazing and recalled all the basics i leanred before!

machne
Автор

i would have dropped out of my cs class from frustration if not for your videos, theyre easy to understand and have really helped me a lot. thank you!

jamiehope
Автор

Honestly my favourite Python tutorials on Youtube. Cheers YK.

JIMMYBOY
Автор

please continue the series from this beginner level to advanced level and make projects tutorial.ur vids are awesome.u talk so well

AbdurRahman-vjhq
Автор

Hey YK, Can make a playlist on machine learning with Python. That will really be helpful for millions of students, your teaching is amazing!!!

mdkhalidsiddique
Автор

5.5 million people started but on 150k made it here XD

langqin
Автор

Hey YK, free code camp has mentioned your channel in their survey. I am feeling glad as part of your channel.😃

namanaggarwaal
Автор

the comment section is also helpful for us newbies, thank you CS Dojo and the community!

markgaspay
Автор

I learn a lot from here compared to other sources. Keep up the good work

kavinbharathi
Автор

please continue with the series please its my request

harsiddhisinghdev
Автор

You can also input givenlist2 as an argument into the set().
givenList2 = [1, 3, 4, 1, 3]
newSet2 = set(givenlist2)
total = 0
for iceCream in newSet2:
total += iceCream
print(total)

Stay safe during the Coronavirus!

swallowedinthesea
Автор

Thank you for your tutorials!! I just started learning Python and you make it understandable, even for a Master of Arts who has no experience with programming :). 

In the last problem i found the solution, but made the extra step from set to list and then calculated the sum... Now I know you can calculate the sum of a set as well :).

Ichinkie
Автор

given_list = [1, 3, 4, 1, 4, 3]
total = 0
b = set()

for x in given_list:
b.add(x)

for e in b:
total = e + total

print(total)

yogitrapagainstthelgbt
Автор

set4={x for x in given_list2}
total1=0
for x in set4:
total1+=x
print(total1)

YY-bkbc