Python lists, sets, and tuples explained 🍍

Поділитися
Вставка
  • Опубліковано 22 лис 2024

КОМЕНТАРІ • 144

  • @BroCodez
    @BroCodez  2 роки тому +205

    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

  • @jcoronav
    @jcoronav Рік тому +72

    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..

  • @mayracarreno4123
    @mayracarreno4123 10 місяців тому +15

    man, I've never learned code's topics this fast and clear, THANK YOU!!!

  • @shocky6302
    @shocky6302 2 роки тому +36

    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!

  • @BüblySnowfláke-m3x
    @BüblySnowfláke-m3x 11 місяців тому +4

    You're the only guy who explains the Python to my understanding. Tnx very much😊

  • @clairewilliams9416
    @clairewilliams9416 2 місяці тому

    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.

  • @godoy_
    @godoy_ 6 місяців тому +7

    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!")

    • @extendedsomeone
      @extendedsomeone 7 днів тому

      WOW! That's Great
      👍

    • @MuhammadTahalol
      @MuhammadTahalol 5 днів тому

      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

  • @HelicopterRidesForCommunists
    @HelicopterRidesForCommunists 2 роки тому +7

    Love the nice, clear, concise, and easy to understand style of your teaching.

  • @ptd3v
    @ptd3v 7 місяців тому +1

    This is easily the best video on this topic out there.

  • @yukikimino-k7s
    @yukikimino-k7s 6 місяців тому +3

    I've been looking a python course like this and finally I've found this. I love you bro code.

  • @말랑물만두족제비
    @말랑물만두족제비 Рік тому +9

    why is this video way better than my 1k uni course

  • @jayman8001
    @jayman8001 Рік тому +5

    This was incredibly useful and easy to understand. Thank you sir.

  • @yanasitta
    @yanasitta 10 місяців тому

    I really enjoyed and learned a lot quickly from this video. Easy to follow and concise. Thank you.

  • @fbushphone
    @fbushphone 7 місяців тому

    You're the man, thank you for freely sharing your knowledge it is much appreciated

  • @lal_1404
    @lal_1404 8 місяців тому

    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.🙏

  • @balkanarchist1914
    @balkanarchist1914 8 місяців тому

    The concepts are easy to understand, but it's still a great reference for beginners like me.

  • @prathampatel8808
    @prathampatel8808 Місяць тому

    You are always a great teacher. 🎉🎉🎉

  • @janlim9374
    @janlim9374 3 місяці тому

    You are very good at explaining things

  • @mohammadnoori9278
    @mohammadnoori9278 Рік тому +5

    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.

  • @ronitsworld9388
    @ronitsworld9388 2 місяці тому

    Better and shorter than paid course
    Good Job!!

  • @masterxenon
    @masterxenon 5 днів тому

    10/10 vid , W for the fundraiser

  • @JDgiggles
    @JDgiggles Рік тому

    Thank you so much for these videos. I yearn to become a programmer, and this really helps.

  • @zr0724
    @zr0724 2 роки тому +8

    bro please
    make a video on how to make your java program use internet protocols and other stuff like API of WhatsApp , etc.

  • @jatauinnocent7956
    @jatauinnocent7956 Рік тому

    I am truly educated with the lesson

  • @ShaikSameer-u7b
    @ShaikSameer-u7b 10 місяців тому

    Bro you explained well and very easily now i realise now I'm learning

  • @cozycubix
    @cozycubix Рік тому +1

    Thanks, Good Job
    Professionally delivered.

  • @hirootto2771
    @hirootto2771 9 місяців тому

    I had to leave a thanks, your video is really well explained and easy to understand

  • @_Tomaszeq
    @_Tomaszeq 8 місяців тому

    Thanks bro for lists and all these collections, you are master

  • @SHREYASPATEL-wh1ki
    @SHREYASPATEL-wh1ki 7 місяців тому

    amazing explaination sir thank you so much....

  • @lydiabirnbaum8018
    @lydiabirnbaum8018 Місяць тому

    super helpful and direct video!

  • @al-cadaalachannel3194
    @al-cadaalachannel3194 2 роки тому

    Teacher thanks. If you finished this course teach us python for advanced

  • @witwoowitwoo2287
    @witwoowitwoo2287 2 роки тому +2

    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

  • @ranjithramanathan7663
    @ranjithramanathan7663 Рік тому +1

    nice

  • @mlfreak2471
    @mlfreak2471 Рік тому

    Amazingly well explained

  • @thinkandquestion1305
    @thinkandquestion1305 6 місяців тому

    A great tutorial. Thanks

  • @altarious7251
    @altarious7251 Рік тому

    great lesson

  • @nikosvasilopoulos5540
    @nikosvasilopoulos5540 22 дні тому

    Bro, you are awesome. Thank you!

  • @wrtreinador
    @wrtreinador 9 місяців тому

    Clear explanation, thank you.

  • @beforechrist1193
    @beforechrist1193 Рік тому +2

    Best bro ever

  • @JamesBondRJ707
    @JamesBondRJ707 Рік тому

    great 👍👍👍

  • @MannyBernabe
    @MannyBernabe Рік тому

    I like the collection framing. Helpful.

  • @nfsheat1456
    @nfsheat1456 9 місяців тому +9

    sad for pineapple

  • @send2gokul
    @send2gokul 4 місяці тому

    You are the best out there bro. Just no words to describe your effort to make things simple. Kudos to you man.

  • @311DaveR
    @311DaveR 9 місяців тому

    Awesome - great job

  • @HishamButt-ue5rc
    @HishamButt-ue5rc Рік тому

    you earned a new sub! excellent teacher was struggling with these!

  • @rontarrant
    @rontarrant 8 місяців тому

    Just off the top of my head, I can't think of any practical use for a set. Your thoughts?

  • @piano_depois_dos_50
    @piano_depois_dos_50 4 місяці тому

    Thank you, Bro! : ) You are my angel.

  • @Trè_Mar
    @Trè_Mar 5 місяців тому

    Great tutorial!

  • @aritradas6588
    @aritradas6588 2 роки тому +1

    Love your videos bro

  • @kieljnsz
    @kieljnsz 5 місяців тому

    This is amazing. Thanks!

  • @jasonn5196
    @jasonn5196 5 місяців тому

    Wow you are good. Spot on!

  • @JoaoLima-pq1hm
    @JoaoLima-pq1hm Рік тому

    Excellent work, bro

  • @markmilan57
    @markmilan57 10 місяців тому

    Bro will you make a video about asyncio in python? It will be helpful a lot.

  • @sanunitwaibu529
    @sanunitwaibu529 Рік тому

    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.

  • @jubbed5826
    @jubbed5826 2 роки тому

    hello
    u can make video with
    Ruby (programming languages)

  • @DS.Fahad03
    @DS.Fahad03 7 місяців тому

    Thank you, Sir

  • @binarycloud1843
    @binarycloud1843 10 місяців тому

    Good stuff!!

  • @tara2337
    @tara2337 8 місяців тому

    GREAT!!

  • @პროგრამირებისშესახებ

    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

  • @drewxx8527
    @drewxx8527 2 роки тому +2

    JavaScript: I'm more advanced than you
    Python: I'm Easy than you. Your giving people mentalbreak down

  • @TN61GAMER
    @TN61GAMER 2 роки тому +1

    Waiting for this video 🤗🎉

  • @bekkhanh
    @bekkhanh Рік тому

    brief and easy to remember :)

  • @LauwaliIsaDk
    @LauwaliIsaDk 2 роки тому

    I like your style bro.

  • @gencmuhendis8401
    @gencmuhendis8401 5 місяців тому

    Thank you!

  • @ISOPOINTQCS
    @ISOPOINTQCS 5 місяців тому

    THANK YOU !

  • @imelaniiiie
    @imelaniiiie Рік тому

    Do you have ARRAYS in python?

  • @ботяра-й5х
    @ботяра-й5х 2 роки тому

    feel bad for you, this useful material don't getting views, but thank you for teaching us (and me actually) coding

  • @Muhaiminul_coding_club
    @Muhaiminul_coding_club 10 місяців тому

    thank you man,, this is cooler 😎 😎

  • @Bleedpool
    @Bleedpool Рік тому

    Thank you

  • @erekle99
    @erekle99 2 роки тому

    good!

  • @kamal9294
    @kamal9294 2 роки тому +2

    Bro i want Artificial intelligence and machine learning in python or advanced python

  • @KeithJayalal
    @KeithJayalal 8 місяців тому

    What if there is a multidimensional array?

  • @to4698
    @to4698 9 місяців тому

    🖐 Thanks a lot ! (❤,👍,🧔‍♂,🙋,🐝,🌼)

  • @kwameasedaboydsom8796
    @kwameasedaboydsom8796 4 місяці тому

    Hello
    Can the for fruit in fruits work for a set?

  • @sherubawon1
    @sherubawon1 Рік тому

    Curious..why use immutable for set and unchangeable for tuples if the words almost mean the same thing?

  • @nahomhailu961
    @nahomhailu961 2 роки тому

    Let's go Brooo

  • @tee-hee9553
    @tee-hee9553 2 роки тому

    If you know please tell me how account store all its data.

  • @KatRollo
    @KatRollo 9 місяців тому +1

    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.

  • @SpookXDD
    @SpookXDD 23 дні тому

    what app do you use for your videos????

  • @lympexyt6969
    @lympexyt6969 2 роки тому +1

    AYO IM EARLY PLS GIB ME HEART

  • @SasiKumar-un5zw
    @SasiKumar-un5zw 2 роки тому

    Waiting for react tutorial...

  • @decktoe
    @decktoe 2 роки тому +1

    can u do in the next video lua video

  • @mny_11
    @mny_11 4 місяці тому

    goated video

  • @rockichannel3102
    @rockichannel3102 2 роки тому +1

    yes I am first...

  • @adam-vip
    @adam-vip 2 роки тому

    👍👍👍

  • @trxlly
    @trxlly 2 роки тому

    Thnxx

  • @rewardedwithemaan646
    @rewardedwithemaan646 2 роки тому

    Hey bro code, do you think you will make a full BASH play list?
    I.E suggesting

  • @tugkaneren1722
    @tugkaneren1722 3 місяці тому

    Isn't a set supposed to be mutable?

  • @durlabhbiswas860
    @durlabhbiswas860 2 роки тому

    Thanks Bro! It is in my syllabus and I am so doomed 💀

  • @Mythiril
    @Mythiril Рік тому

    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?

  • @ombhide9165
    @ombhide9165 Рік тому

    Love U bro

  • @lolman6976
    @lolman6976 2 роки тому +1

    please tell me your extensions on vs code

  • @misslaurenbecca
    @misslaurenbecca 8 місяців тому

    omg. Why did they not teach us about help() on day 1 of college?

  • @phanikiran9826
    @phanikiran9826 11 місяців тому

    no, can't be that easy. In utter disbelief!

  • @noahgsolomon
    @noahgsolomon 2 роки тому

    Goat

  • @BUNNY-yh2wg
    @BUNNY-yh2wg 8 місяців тому +2

    bro!!!! Sets are mutable
    sorry to correct , but it requires correction

  • @Pgertse7
    @Pgertse7 Рік тому

    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?

  • @nelsonphiri3473
    @nelsonphiri3473 2 роки тому

    hey man can you help me load a graph on GUI in java

  • @punithl5670
    @punithl5670 2 місяці тому

    1:29 true

  • @H3XED_OwO
    @H3XED_OwO 11 місяців тому

    sounds a lot like sets in maths