Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #string #list #python #comma
ADD COMMENT
Topic
Name
9+4 =