0

Whats the point in empty tupels

Why do they show you how to create am empty tupel? Since you cant append anything.

17th Oct 2019, 9:58 AM
19skiper89
19skiper89 - avatar
9 Respuestas
0
Can you share an example where you saw that empty tuple being used ?
17th Oct 2019, 10:07 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Błack Jesus❕ some lazy person reading your answer might think that you can actually change a tuple. You can't change a tuple value, please correct it to remove any confusions.
17th Oct 2019, 11:49 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Błack Jesus❕ no, you're just creating a new tuple with different variables, then assigning it to the same variable_name, while in fact it is a completly different tuple. Changing a tuple means that you can directly change it just by writing t[i] = 2 for example, which can't be done.
17th Oct 2019, 11:54 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Nah keep it, just change the name to remove confusions to new programmers ^^"
17th Oct 2019, 11:57 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Code name
17th Oct 2019, 12:03 PM
Aymane Boukrouh
Aymane Boukrouh - avatar