Tuples | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Tuples

can tuples be nested for eg my tuples=(1,(2,3)) is this correct

5th Apr 2018, 11:26 AM
viswak reddy
viswak reddy - avatar
2 Antworten
+ 2
Yes, tuples as a classical datatype, can be nested. However, I'm not sure what programming language you're using. When asking a question you should specify any relevant information.
5th Apr 2018, 11:59 AM
Emma
0
yes. please write your variable my_tuples or MyTuples (as Python rule) my_tuples = (1,(2,3)) print(my_tuples)
5th Apr 2018, 11:59 AM
­čôłSmileGoodHope­čôł
­čôłSmileGoodHope­čôł - avatar