converting tuple to a list
Anders M Eriksson
anders.eriksson at morateknikutveckling.se
Wed Jan 12 07:45:18 EST 2000
Hello!
Is this the 'best' way to convert a tuple to a list?
t = (1,2,3,4,5)
l = []
for i in range(len(t)):
l.append(t[i])
// Anders
More information about the Python-list
mailing list