+ 1

Tuple by default? Lists inside of lists

I created a small matrice with lists inside of lists but it's a tuple by default, why is this?

23rd Nov 2019, 2:40 PM
sudo-asap
sudo-asap - avatar
3 Respuestas
+ 6
That doesn't happen. Can you show us the code?
23rd Nov 2019, 2:40 PM
HonFu
HonFu - avatar
+ 3
Also if you have a tuple, you can make it a list by list() t = (1,2,3) t = list(t) print(t) [1,2,3]
23rd Nov 2019, 6:30 PM
Matthias
Matthias - avatar