# input comma separated elements as string
str = str (raw_input ("Enter comma separated integers: "))
print "Input string: ", str
# conver to the list
list = str.split (",")
print "list: ", list
hobbies = ["basketball", "football", "swimming"]
print("My hobbies are:") # My hobbies are:
print(", ".join(hobbies)) # basketball, football, swimming
>>> my_string = 'A,B,C,D,E'
>>> my_list = my_string.split(",")
>>> print my_list
['A', 'B', 'C', 'D', 'E']
converted_list = [str(element) for element in a_list]