Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Whats the point in empty tupels
Why do they show you how to create am empty tupel? Since you cant append anything.
5 Antworten
0
Can you share an example where you saw that empty tuple being used ?
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.
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.
0
Nah keep it, just change the name to remove confusions to new programmers ^^"
0
Code name