make list comma separated python code example
Example 1: string to list in python comma
# 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
Example 2: convert list to string separated by comma python
converted_list = [str(element) for element in a_list]