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
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..
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!
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!")
fruits = [] more_fruit = input("Do you want to add fruits? Y/N: ") while more_fruit != "Y" and more_fruit != "N": more_fruit = input("Invalid input, please re-enter whether you want to add fruits or not! Y/N: ") while more_fruit == "Y": one_fruit = input("Please enter your Fruit(E to exit): ") fruits.append(one_fruit) if one_fruit == "E": fruits.remove("E") break if len(fruits) > 0: print(f"You Have {len(fruits)} fruit/s") listing = input("Do you want to know what fruits are in the list? Y/N: ") while listing != "Y" and listing != "N": listing = input("Invalid input, please re-enter whether you want to list all the fruits in the list or not Y/N: ") if listing == "Y": print("These are the fruits you added in your list:") for x in fruits: print (x, end=", ") else: print("No fruits!") I updated your code to make it a bit better, try it out and let me know what you think
I’ve watched a few python videos now and yours are the only ones I’ve found that leave me feeling like I can actually do this. You explain things so simply and clearly.
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.🙏
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.
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
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.
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.
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?
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?
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.
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
@@tomjones8293 bro read the but Add/Remove part
May I know what IDE youre using please
@@jeffryancheta8925 thats pycharm
@@jeffryancheta8925 he's using 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.
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😊
man, I've never learned code's topics this fast and clear, THANK YOU!!!
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!")
WOW! That's Great
👍
fruits = []
more_fruit = input("Do you want to add fruits? Y/N: ")
while more_fruit != "Y" and more_fruit != "N":
more_fruit = input("Invalid input, please re-enter whether you want to add fruits or not! Y/N: ")
while more_fruit == "Y":
one_fruit = input("Please enter your Fruit(E to exit): ")
fruits.append(one_fruit)
if one_fruit == "E":
fruits.remove("E")
break
if len(fruits) > 0:
print(f"You Have {len(fruits)} fruit/s")
listing = input("Do you want to know what fruits are in the list? Y/N: ")
while listing != "Y" and listing != "N":
listing = input("Invalid input, please re-enter whether you want to list all the fruits in the list or not Y/N: ")
if listing == "Y":
print("These are the fruits you added in your list:")
for x in fruits:
print (x, end=", ")
else:
print("No fruits!")
I updated your code to make it a bit better, try it out and let me know what you think
I’ve watched a few python videos now and yours are the only ones I’ve found that leave me feeling like I can actually do this. You explain things so simply and clearly.
Love the nice, clear, concise, and easy to understand style of your teaching.
why is this video way better than my 1k uni course
This is easily the best video on this topic out there.
I've been looking a python course like this and finally I've found this. I love you bro code.
This was incredibly useful and easy to understand. Thank you sir.
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.🙏
You are very good at explaining things
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.
I really enjoyed and learned a lot quickly from this video. Easy to follow and concise. Thank you.
You are always a great teacher. 🎉🎉🎉
bro please
make a video on how to make your java program use internet protocols and other stuff like API of WhatsApp , etc.
Better and shorter than paid course
Good Job!!
amazing explaination sir thank you so much....
You're the man, thank you for freely sharing your knowledge it is much appreciated
Thanks, Good Job
Professionally delivered.
great 👍👍👍
Teacher thanks. If you finished this course teach us python for advanced
Bro you explained well and very easily now i realise now I'm learning
10/10 vid , W for the fundraiser
super helpful and direct video!
I am truly educated with the lesson
The concepts are easy to understand, but it's still a great reference for beginners like me.
Thanks bro for lists and all these collections, you are master
Thank you so much for these videos. I yearn to become a programmer, and this really helps.
Amazingly well explained
nice
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
great lesson
I had to leave a thanks, your video is really well explained and easy to understand
A great tutorial. Thanks
sad for pineapple
Excellent work, bro
Clear explanation, thank you.
Awesome - great job
I like the collection framing. Helpful.
You are the best out there bro. Just no words to describe your effort to make things simple. Kudos to you man.
Bro, you are awesome. Thank you!
Love your videos bro
you earned a new sub! excellent teacher was struggling with these!
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.
Great tutorial!
Best bro ever
Bro will you make a video about asyncio in python? It will be helpful a lot.
Wow you are good. Spot on!
Good stuff!!
Thank you, Bro! : ) You are my angel.
This is amazing. Thanks!
I like your style bro.
JavaScript: I'm more advanced than you
Python: I'm Easy than you. Your giving people mentalbreak down
feel bad for you, this useful material don't getting views, but thank you for teaching us (and me actually) coding
Waiting for this video 🤗🎉
Thank you, Sir
brief and easy to remember :)
good!
GREAT!!
hello
u can make video with
Ruby (programming languages)
thank you man,, this is cooler 😎 😎
can u do in the next video lua video
Waiting for react tutorial...
Thank you
Hey bro code, do you think you will make a full BASH play list?
I.E suggesting
Let's go Brooo
Thank you!
Just off the top of my head, I can't think of any practical use for a set. Your thoughts?
I'm Georgian and I can't understand English my English is low level should you tell some advices to understand this basic python things
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.
THANK YOU !
Thnxx
Bro i want Artificial intelligence and machine learning in python or advanced python
goated video
what app do you use for your videos????
🖐 Thanks a lot ! (❤,👍,🧔♂,🙋,🐝,🌼)
Thanks Bro! It is in my syllabus and I am so doomed 💀
no, can't be that easy. In utter disbelief!
👍👍👍
Love U bro
bro!!!! Sets are mutable
sorry to correct , but it requires correction
omg. Why did they not teach us about help() on day 1 of college?
Do you have ARRAYS in python?
Curious..why use immutable for set and unchangeable for tuples if the words almost mean the same thing?
If you know please tell me how account store all its data.
please tell me your extensions on vs code
I think he uses PyCharm.
Goat
Hello
Can the for fruit in fruits work for a set?
What if there is a multidimensional array?
yes I am first...
1:29 true
sounds a lot like sets in maths
Recursion pls😢
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?
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?
Whatever happened to the intro of “hey what’s going on everybody, it’s your bro here.”?!?!?!?
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.