+ 3
How to store data values from a tuple into a list?
2 Antworten
+ 5
tupleA = (1,2,3)
listA = list(tupleA) #[1,2,3]
is that what you mean?
+ 1
Tuple is immutable (unmodified) list. you can do with it all what you can with list but modify or change it. example,
for x in TupleA:
print(x)
will work.