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


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
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­čôł - avatar