So, a tuple is like a database record, or a structure in C for example? Is there anything that ensures that your tuples can be a type, that is if you have a name and age, it has a type or can be checked or something?
justgivemethetruth Yes, a tuple is like a database record or a struct. In fact, some databases refer to records as tuples. Since Python is dynamically typed, all type checking happens at run-time, so there aren't many automatic mechanisms for ensuring all tuples are the same type.
Concise and presented with a pleasing voice. Thanks a lot. :)
An important point to make is that they are immutable which means they cannot be MUTATED, not MUTED.
thank you for the tutorial, that was really helpful
So, a tuple is like a database record, or a structure in C for example?
Is there anything that ensures that your tuples can be a type, that is if you have a name and age, it has a type or can be checked or something?
justgivemethetruth Yes, a tuple is like a database record or a struct. In fact, some databases refer to records as tuples.
Since Python is dynamically typed, all type checking happens at run-time, so there aren't many automatic mechanisms for ensuring all tuples are the same type.
Barry Brown Thanks Barry.
Even a list can have objects of different data types, I still don't understand why use tuples. ?
Great bro! Thanks
Very helpful thank you
1. Single
2. Double
3. Triple
4. Quadruple
5. Quintuple
6. Sextuple
7. Septuple
8. Optuple
9. Nontuple?
10. Forgot Laughing Out Loud.
im 11 i have no idea what these words mean : P
+Corgis Of Hyrule when i was your age, i didn't knew how to operate computer.