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 Respostas
+ 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