commma seperated list to integers python code example
Example 1: how to separate a string or int with comma in python
string = input('Input')
>>> 1,2
print(cord.split(','))
>>>['1', '2']
Example 2: python input comma separated values
lst = input().split(',')