list commma seprated int 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: how to input comma separated int values in python
lst = list(map(int, input("Enter comma separated values: ").split(",")))