Jan-14-2017, 03:27 AM
I am playing to convert a tuple to a list. I thought using list() is simple, but not...What's wrong?
------------------
aList = list(aTuple)
TypeError: 'list' object is not callable
I am using Python 3.5 with Eclipse
aTuple = (123, 'xyz', 'zara', 'abc'); aList = list(aTuple) print ("List elements : ", aList)Output:
------------------
aList = list(aTuple)
TypeError: 'list' object is not callable
I am using Python 3.5 with Eclipse