Answers for "Which method can be used to convert a list to a tuple?"

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

Code answers related to "Which method can be used to convert a list to a tuple?"

Python Answers by Framework

Browse Popular Code Answers by Language