Answers for "python transform tuple in list"

3

converting a tuple to a list in python

#!/usr/bin/python

aTuple = (123, 'xyz', 'zara', 'abc');
aList = list(aTuple)
print "List elements : ", aList
Posted by: Guest on October-26-2020

Python Answers by Framework

Browse Popular Code Answers by Language