V
vdavidster
Hello everyone,
I want to convert a tuple to a list, and I expected this behavior:
list(('abc','def')) -> ['abc','def']
list(('abc')) -> ['abc']
But Python gave me this behavior:
list(('abc','def')) -> ['abc','def']
list(('abc')) -> ['a','b','c']
How do I do get Python to work like the in former case?
Many thanks!
David
I want to convert a tuple to a list, and I expected this behavior:
list(('abc','def')) -> ['abc','def']
list(('abc')) -> ['abc']
But Python gave me this behavior:
list(('abc','def')) -> ['abc','def']
list(('abc')) -> ['a','b','c']
How do I do get Python to work like the in former case?
Many thanks!
David