output values as comma separated in python code example
Example 1: python input comma separated values
lst = input().split(',')
Example 2: how to input comma separated int values in python
lst = list(map(int, input("Enter comma separated values: ").split(",")))
Example 3: 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