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.
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
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
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.
You made it very easy to understand. Thank you
Very useful. Thanks for sharing.
so why even use tuples?
awesome video keep it up
your voice is so adorable, by the way video is very helpful. Thanks ❤
So tuples are typically geographic coordinates or specific details about an item while lists are dynamic?
wow..!! u made it so easy
Great explanation
I am new to python and this may be a dumb question! But what is the benefit of using tuples?
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.
They are faster than lists and use less storage.
So do Tuples really have a use? Couldn't I just use a list and not change it? What's the real benefit
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
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
Hi, I'm very glad it helped you and thank you for your suggestion. I will definitely add more videos on this topic.
@@codingwithestefania 🎉
thank you very much
Thank you
Thanks!
Brilliant
Hi can you tell me how time spend you to learning python
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.
Love you
From where you belong