Python lists, sets, and tuples explained 🍍
Vložit
- čas přidán 20. 06. 2024
- #python #tutorial #course
Python list set tuple tutorial example explained
00:00:00 intro
00:00:49 list
00:09:40 set
00:12:40 tuple
00:14:22 conclusion
List = [] ordered and changeable. Duplicates OK
Set = {} unordered and immutable, but Add/Remove OK. NO duplicates
Tuple = () ordered and unchangeable. Duplicates OK. FASTER
DRINKING GAME: Take a shot every time I say the word *pineapple*
# List = [] ordered and changeable. Duplicates OK
# Set = {} unordered and immutable, but Add/Remove OK. NO duplicates
# Tuple = () ordered and unchangeable. Duplicates OK. FASTER
Thanks buddy
set is mutable in Python. please dont mislead your audience thanks
@@tomjones8293 bro read the but Add/Remove part
May I know what IDE youre using please
@@jeffryancheta8925 thats pycharm
I have seen dozens of tutorials, including the most known. Categorically, I can say yours are the best: clear, simple, intelligent speech. This is particularly appreciated by a non native English speaker. Thanks..
This and NeuralNine.
After 8 years of trying to figure out python, you're one of only two people who could ever get it into my head and for that I'm ever greatful, thanks Bro!
8 years
you've been recearching for 8 years and you didnt learn the basics?
He means 8 days.
this is the biggest lie in internet
@@sajibulislam8472for real😂
man, I've never learned code's topics this fast and clear, THANK YOU!!!
Love the nice, clear, concise, and easy to understand style of your teaching.
I have recently been learning Python, and I will say that I am thankful for running across your channel. Thank you for all the knowledge and experience you teach and share! I hope to become successful in coding someday soon!
How far have you gotten?
Update bro
You're the only guy who explains the Python to my understanding. Tnx very much😊
This was incredibly useful and easy to understand. Thank you sir.
i love these videos iv spent many many hours watching. Im learning so much who knew so many things as changed over the years. i used to do coding many many years ago when there was only microsoft frontpage and notepad 🤣 keep up the great work
I've been looking a python course like this and finally I've found this. I love you bro code.
Thanks for all the efforts you are putting on making these videos. They are extremely helpful to me to organize what I've been learning. This video was really good and I want to ask if you can cover more advanced methods for them in another video. Thanks again.
you earned a new sub! excellent teacher was struggling with these!
Waiting for this video 🤗🎉
Thanks, Good Job
Professionally delivered.
This is easily the best video on this topic out there.
I really enjoyed and learned a lot quickly from this video. Easy to follow and concise. Thank you.
Amazingly well explained
I like the collection framing. Helpful.
Thank you so much for these videos. I yearn to become a programmer, and this really helps.
great 👍👍👍
You're the man, thank you for freely sharing your knowledge it is much appreciated
great lesson
Awesome - great job
why is this video way better than my 1k uni course
A great tutorial. Thanks
Great tutorial!
Excellent work, bro
amazing explaination sir thank you so much....
I am truly educated with the lesson
Clear explanation, thank you.
This is amazing. Thanks!
Love your videos bro
Wow you are good. Spot on!
Good stuff!!
I had to leave a thanks, your video is really well explained and easy to understand
Thanks bro for lists and all these collections, you are master
bro please
make a video on how to make your java program use internet protocols and other stuff like API of WhatsApp , etc.
nice
GREAT!!
brief and easy to remember :)
Thank you!
Bro you explained well and very easily now i realise now I'm learning
THANK YOU !
Thank you, Sir
Made this code while studying this
After a few minutes trying stuff, finally worked!
Please try it!
fruits = []
more_fruit = input("Do you want to add fruits? Y/N: ")
while more_fruit == "Y":
one_fruit = input("Please enter your Fruit(E to exit): ")
fruits.append(one_fruit)
if one_fruit == "E":
break
else:
continue
else:
pass
if len(fruits) > 0:
fruits.remove("E")
print(f"You Have {len(fruits)} fruit/s")
listing = input("Do you want to know what fruits are in the list? Y/N: ")
if listing == "Y":
for x in fruits:
print (x)
else:
pass
else:
print("No fruits!")
good!
Best bro ever
Teacher thanks. If you finished this course teach us python for advanced
Thnxx
I like your style bro.
Thank you
Thanks, for the summarized details info. i was looking for this in all the others presenters tutorials, but i can't. My search ends here. Thanks once again.🙏
Let's go Brooo
thank you man,, this is cooler 😎 😎
The concepts are easy to understand, but it's still a great reference for beginners like me.
Instead of single "variable", I would probably use the term "container" that stores multiple values. But in the world of microservices, "container" means something else. 😅
Thanks for the Py tutorials.
👍👍👍
Love U bro
hello...your tutorials are extraordinary. can you please create a tutorial on python built-in functions(all built in functions there are 71). i hope you will work on it. thank you.
feel bad for you, this useful material don't getting views, but thank you for teaching us (and me actually) coding
Hey bro code, do you think you will make a full BASH play list?
I.E suggesting
yes I am first...
hello
u can make video with
Ruby (programming languages)
🖐 Thanks a lot ! (❤,👍,🧔♂,🙋,🐝,🌼)
Goat
Bro will you make a video about asyncio in python? It will be helpful a lot.
can u do in the next video lua video
Waiting for react tutorial...
Hi Bro Code i`m learning python and are followng you video and has learned alot. I trying to write a code with the user input where it adds up a string of numbers like ect 12345678910123 every second number in a string of number. then i want to minus it with 10 if it is more than 10 ect 14 to get the number 4. How do i write the code im stuck?
Curious..why use immutable for set and unchangeable for tuples if the words almost mean the same thing?
Thanks Bro! It is in my syllabus and I am so doomed 💀
AYO IM EARLY PLS GIB ME HEART
ok
JavaScript: I'm more advanced than you
Python: I'm Easy than you. Your giving people mentalbreak down
If you know please tell me how account store all its data.
Bro i want Artificial intelligence and machine learning in python or advanced python
sad for pineapple
Do you have ARRAYS in python?
Just off the top of my head, I can't think of any practical use for a set. Your thoughts?
What if there is a multidimensional array?
hey man can you help me load a graph on GUI in java
please tell me your extensions on vs code
I think he uses PyCharm.
omg. Why did they not teach us about help() on day 1 of college?
why do you say sets are immutable? They're unhashable so by python definition they're mutable? otherwise they would have been hashable. Is there a reason why you consider them immutable?
no, can't be that easy. In utter disbelief!
Whatever happened to the intro of “hey what’s going on everybody, it’s your bro here.”?!?!?!?
Recursion pls😢
5:11
sounds a lot like sets in maths
bro!!!! Sets are mutable
sorry to correct , but it requires correction
Do you reply
No
Don't throw the pineapple out with the pizza
Bro likes pineapples
But wait. Set actually is mutable, isn't it?
fruits = {"orange", "apple", "coconut"}
print(fruits, id(fruits))
fruits.add("peanut")
print(fruits, id(fruits))
returns the same id.
Bro code❤
Sets are mutable. Fight me.
Bro said English is a weird language 🌚
bro causally dissing English while making list
genius
ǫ̴̢̨̛̛̦̦̝̗̫͈͚̰̙͎̜͕̜̻̘͚̗͕̥͉͇̥̫͉̳̪͂͑̅̔̀̀̎̓̈́̓͑͆̓̈̈́̂̑͑͑̍̃̑͌͋̈́̂͊͗́͒͌̉̈́͆̾͊͑̇̃͛͒̄̐̄̊͆̎̈́̋̏̋̏̈́̽̓͗̅͑̎̈́̂̈́̍́́̋̑̈́̀́̅͑̓̃̓̽̃̅́͋́͊͗̃͂̌̅̈́̿̓̒̆̌͊̽̀̿̀̈̎́̈́̉̊̏̽̃̏̀̎̽́̍̐̊̄̊̓͛̕͘̕͘̚̚͘͘̚̕͘͘̚̕̚͝͝͠͝͝͝͝͠͝h̶̡̢̢̢̨̧̛̜̬͕̼̮̪̜̞̮̤̬̱̘͔̮͍̱̩̩̫̹̳̯͖͔̦͉̼̗͖̤͎̞͈̗̠͔̺͍̜͇̪̭͉̖͚̣̩̗̤͓̜̠̦̳͇͕͖͔̭̥͕̼͎̟͓̲̯̪͔̫̀̊̊͆̍͛̅̄̅̾̍̓̑̉͛͐̿̃̂̋̀͂́͑̏̔̉̐̔͛̆͛̓̇̋̐͊̒̋͛͛̋̀̅̏̉̑̋̇͘̚̚͜͜͠͠
hi friends I want to become an engineer how can come up