Python Lists vs Tuples: Their Differences Explained in 5 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น • 24

  • @RightySnipeZ
    @RightySnipeZ 8 หลายเดือนก่อน +3

    You made it very easy to understand. Thank you

  • @VictorHugo-bd3bf
    @VictorHugo-bd3bf 10 หลายเดือนก่อน +2

    Very useful. Thanks for sharing.

  • @puddidonlickhd2427
    @puddidonlickhd2427 6 หลายเดือนก่อน +2

    so why even use tuples?

  • @harjot-jeeaspirant4193
    @harjot-jeeaspirant4193 ปีที่แล้ว +2

    awesome video keep it up

  • @A.T.V_Creator
    @A.T.V_Creator 4 หลายเดือนก่อน

    your voice is so adorable, by the way video is very helpful. Thanks ❤

  • @nikhilananth6589
    @nikhilananth6589 ปีที่แล้ว

    So tuples are typically geographic coordinates or specific details about an item while lists are dynamic?

  • @imranchowdhury3099
    @imranchowdhury3099 ปีที่แล้ว +1

    wow..!! u made it so easy

  • @Jose_T131
    @Jose_T131 2 ปีที่แล้ว +2

    Great explanation

  • @primedynamixx
    @primedynamixx 2 ปีที่แล้ว +1

    I am new to python and this may be a dumb question! But what is the benefit of using tuples?

    • @rwahowa
      @rwahowa 2 ปีที่แล้ว +1

      Since tuples are immutable, you should use them to store related data. For instance, details about a car or a person. car = ("Ford","GT 40",1964) - this would be details about a specific car. For a person, you'd store details about them ie age, name etc.

    • @crackjoker-yb8jp
      @crackjoker-yb8jp ปีที่แล้ว +1

      They are faster than lists and use less storage.

  • @ImpossibleEvan
    @ImpossibleEvan ปีที่แล้ว +1

    So do Tuples really have a use? Couldn't I just use a list and not change it? What's the real benefit

    • @fabricehategekimana5350
      @fabricehategekimana5350 ปีที่แล้ว

      At the beginning I thought immutable data structures where bad but their power is to not allow you to change them (incidentally). That's a functionality used in functional programming. They are more performant (time and space) than mutable data and make the code EASIER to reason about. Really cool when you debug your code and do concurrent programming. The only problem is that this immutability is only enforced to data and not variables in python. The best practice is to always use immutability and only use mutability when needed

  • @Nerd4141
    @Nerd4141 3 ปีที่แล้ว +1

    Hi ma'am please..make the videos on javascript....i dont know anything about javascript, but when i watch your videos it is very clearly understanding...plz help me to learn javascript...now I'm inbtech 3rd year and i didn't do any projects till now...thanks in advance

    • @codingwithestefania
      @codingwithestefania  3 ปีที่แล้ว

      Hi, I'm very glad it helped you and thank you for your suggestion. I will definitely add more videos on this topic.

    • @I_am_FRANCO
      @I_am_FRANCO ปีที่แล้ว

      @@codingwithestefania 🎉

  • @markmusk521
    @markmusk521 2 ปีที่แล้ว +1

    thank you very much

  • @xmc3981
    @xmc3981 8 หลายเดือนก่อน +1

    Thank you

  • @b_algharabli
    @b_algharabli 2 ปีที่แล้ว +1

    Thanks!

  • @jmohamed87
    @jmohamed87 ปีที่แล้ว

    Brilliant

  • @الحمدللهوالشكرلله-ذ7و
    @الحمدللهوالشكرلله-ذ7و 3 ปีที่แล้ว

    Hi can you tell me how time spend you to learning python

    • @codingwithestefania
      @codingwithestefania  3 ปีที่แล้ว +2

      Hi, it really depends on the time dedicated to the learning resources and practice. I suggest starting with the fundamentals and combining that with practical projects.

  • @pgpdas
    @pgpdas 5 หลายเดือนก่อน

    Love you

  • @Desiknowdge458
    @Desiknowdge458 ปีที่แล้ว

    From where you belong