Python lists, sets, and tuples explained 🍍

Поделиться
HTML-код
  • Опубликовано: 20 ноя 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

    • @Br0_CoDeS
      @Br0_CoDeS Год назад +2

      Thanks buddy

    • @imfrommars7362
      @imfrommars7362 Год назад +4

      @@tomjones8293 bro read the but Add/Remove part

    • @jeffryancheta8925
      @jeffryancheta8925 Год назад

      May I know what IDE youre using please

    • @dimitriwest8258
      @dimitriwest8258 Год назад

      @@jeffryancheta8925 thats pycharm

    • @emil_qxy
      @emil_qxy Год назад

      @@jeffryancheta8925 he's using pycharm

  • @jcoronav
    @jcoronav 11 месяцев назад +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..

  • @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😊

  • @mayracarreno4123
    @mayracarreno4123 9 месяцев назад +15

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

  • @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 6 дней назад

      WOW! That's Great
      👍

    • @MuhammadTahalol
      @MuhammadTahalol 4 дня назад

      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

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

  • @HelicopterRidesForCommunists
    @HelicopterRidesForCommunists 2 года назад +7

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

  • @말랑물만두족제비
    @말랑물만두족제비 Год назад +9

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

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

  • @jayman8001
    @jayman8001 Год назад +5

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

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

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

  • @yanasitta
    @yanasitta 10 месяцев назад

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

  • @prathampatel8808
    @prathampatel8808 Месяц назад

    You are always a great teacher. 🎉🎉🎉

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

  • @ronitsworld9388
    @ronitsworld9388 2 месяца назад

    Better and shorter than paid course
    Good Job!!

  • @SHREYASPATEL-wh1ki
    @SHREYASPATEL-wh1ki 7 месяцев назад

    amazing explaination sir thank you so much....

  • @fbushphone
    @fbushphone 7 месяцев назад

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

  • @cozycubix
    @cozycubix Год назад +1

    Thanks, Good Job
    Professionally delivered.

  • @JamesBondRJ707
    @JamesBondRJ707 Год назад

    great 👍👍👍

  • @al-cadaalachannel3194
    @al-cadaalachannel3194 2 года назад

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

  • @ShaikSameer-u7b
    @ShaikSameer-u7b 10 месяцев назад

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

  • @masterxenon
    @masterxenon 4 дня назад

    10/10 vid , W for the fundraiser

  • @lydiabirnbaum8018
    @lydiabirnbaum8018 Месяц назад

    super helpful and direct video!

  • @jatauinnocent7956
    @jatauinnocent7956 Год назад

    I am truly educated with the lesson

  • @balkanarchist1914
    @balkanarchist1914 8 месяцев назад

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

  • @_Tomaszeq
    @_Tomaszeq 8 месяцев назад

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

  • @JDgiggles
    @JDgiggles Год назад

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

  • @mlfreak2471
    @mlfreak2471 Год назад

    Amazingly well explained

  • @ranjithramanathan7663
    @ranjithramanathan7663 Год назад +1

    nice

  • @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

  • @altarious7251
    @altarious7251 Год назад

    great lesson

  • @hirootto2771
    @hirootto2771 9 месяцев назад

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

  • @thinkandquestion1305
    @thinkandquestion1305 6 месяцев назад

    A great tutorial. Thanks

  • @nfsheat1456
    @nfsheat1456 9 месяцев назад +9

    sad for pineapple

  • @JoaoLima-pq1hm
    @JoaoLima-pq1hm Год назад

    Excellent work, bro

  • @wrtreinador
    @wrtreinador 9 месяцев назад

    Clear explanation, thank you.

  • @311DaveR
    @311DaveR 9 месяцев назад

    Awesome - great job

  • @MannyBernabe
    @MannyBernabe Год назад

    I like the collection framing. Helpful.

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

  • @nikosvasilopoulos5540
    @nikosvasilopoulos5540 21 день назад

    Bro, you are awesome. Thank you!

  • @aritradas6588
    @aritradas6588 2 года назад +1

    Love your videos bro

  • @HishamButt-ue5rc
    @HishamButt-ue5rc Год назад

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

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

  • @Trè_Mar
    @Trè_Mar 5 месяцев назад

    Great tutorial!

  • @beforechrist1193
    @beforechrist1193 Год назад +2

    Best bro ever

  • @markmilan57
    @markmilan57 10 месяцев назад

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

  • @jasonn5196
    @jasonn5196 5 месяцев назад

    Wow you are good. Spot on!

  • @binarycloud1843
    @binarycloud1843 10 месяцев назад

    Good stuff!!

  • @piano_depois_dos_50
    @piano_depois_dos_50 4 месяца назад

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

  • @kieljnsz
    @kieljnsz 5 месяцев назад

    This is amazing. Thanks!

  • @LauwaliIsaDk
    @LauwaliIsaDk 2 года назад

    I like your style bro.

  • @drewxx8527
    @drewxx8527 2 года назад +2

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

  • @ботяра-й5х
    @ботяра-й5х 2 года назад

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

  • @TN61GAMER
    @TN61GAMER 2 года назад +1

    Waiting for this video 🤗🎉

  • @DS.Fahad03
    @DS.Fahad03 7 месяцев назад

    Thank you, Sir

  • @bekkhanh
    @bekkhanh Год назад

    brief and easy to remember :)

  • @erekle99
    @erekle99 2 года назад

    good!

  • @tara2337
    @tara2337 8 месяцев назад

    GREAT!!

  • @jubbed5826
    @jubbed5826 2 года назад

    hello
    u can make video with
    Ruby (programming languages)

  • @Muhaiminul_coding_club
    @Muhaiminul_coding_club 10 месяцев назад

    thank you man,, this is cooler 😎 😎

  • @decktoe
    @decktoe 2 года назад +1

    can u do in the next video lua video

  • @SasiKumar-un5zw
    @SasiKumar-un5zw 2 года назад

    Waiting for react tutorial...

  • @Bleedpool
    @Bleedpool Год назад

    Thank you

  • @rewardedwithemaan646
    @rewardedwithemaan646 2 года назад

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

  • @nahomhailu961
    @nahomhailu961 2 года назад

    Let's go Brooo

  • @gencmuhendis8401
    @gencmuhendis8401 5 месяцев назад

    Thank you!

  • @rontarrant
    @rontarrant 8 месяцев назад

    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

  • @KatRollo
    @KatRollo 8 месяцев назад +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.

  • @ISOPOINTQCS
    @ISOPOINTQCS 5 месяцев назад

    THANK YOU !

  • @trxlly
    @trxlly 2 года назад

    Thnxx

  • @kamal9294
    @kamal9294 2 года назад +2

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

  • @mny_11
    @mny_11 4 месяца назад

    goated video

  • @SpookXDD
    @SpookXDD 22 дня назад

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

  • @to4698
    @to4698 9 месяцев назад

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

  • @durlabhbiswas860
    @durlabhbiswas860 2 года назад

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

  • @phanikiran9826
    @phanikiran9826 11 месяцев назад

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

  • @adam-vip
    @adam-vip 2 года назад

    👍👍👍

  • @ombhide9165
    @ombhide9165 Год назад

    Love U bro

  • @BUNNY-yh2wg
    @BUNNY-yh2wg 8 месяцев назад +2

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

  • @misslaurenbecca
    @misslaurenbecca 8 месяцев назад

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

  • @imelaniiiie
    @imelaniiiie Год назад

    Do you have ARRAYS in python?

  • @sherubawon1
    @sherubawon1 Год назад

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

  • @tee-hee9553
    @tee-hee9553 2 года назад

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

  • @lolman6976
    @lolman6976 2 года назад +1

    please tell me your extensions on vs code

  • @noahgsolomon
    @noahgsolomon 2 года назад

    Goat

  • @kwameasedaboydsom8796
    @kwameasedaboydsom8796 4 месяца назад

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

  • @KeithJayalal
    @KeithJayalal 8 месяцев назад

    What if there is a multidimensional array?

  • @rockichannel3102
    @rockichannel3102 2 года назад +1

    yes I am first...

  • @punithl5670
    @punithl5670 2 месяца назад

    1:29 true

  • @H3XED_OwO
    @H3XED_OwO 11 месяцев назад

    sounds a lot like sets in maths

  • @Ravi.Kumar-
    @Ravi.Kumar- 2 года назад

    Recursion pls😢

  • @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?

  • @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?

  • @andrewamirzadeh7678
    @andrewamirzadeh7678 2 года назад

    Whatever happened to the intro of “hey what’s going on everybody, it’s your bro here.”?!?!?!?

  • @vladimirtsyapka3277
    @vladimirtsyapka3277 2 года назад +1

    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.