[Solved] Permanently converting tuples to lists in Python [closed]


t = list(t)

list(t) returns a new list while keeping t as a tuple.

Think about a case you want to have both tuple and list.

t2 = list(t)

t is still a tuple while t2 is now a list.

solved Permanently converting tuples to lists in Python [closed]