how to convert comma separated string to list code example
Example 1: python list comma separated string
hobbies = ["basketball", "football", "swimming"]
print("My hobbies are:")
print(", ".join(hobbies))
Example 2: string to list in python comma
str = str (raw_input ("Enter comma separated integers: "))
print "Input string: ", str
list = str.split (",")
print "list: ", list
Example 3: list from comma separated string python
>>> my_string = 'A,B,C,D,E'
>>> my_list = my_string.split(",")
>>> print my_list
['A', 'B', 'C', 'D', 'E']