+ 2
Benefit of using a tuple instead of a list?
Based on the Python course here it sounds like a tuple is just a list you can't change? So what would the advantages of using a tuple be?
7 odpowiedzi
+ 6
I'm not an expert, but the two biggest advantages are:
1. Faster
2. Fixed Memory Size
+ 2
By the way Good Question.
+ 2
Aymane Boukrouh [Unavailable] Daud Semab awesome, thanks both of you!
+ 2
Gamal Kassem Farouk that is just a convention, not a property.
0
List can contain data of the same type but tuple can contain data of Many types
0
According to me tuple is mostly used where we need a unique identity like our account number it neither changed nor similar to other ones.