Answers for "comma seprated number string convert to int python"

2

how to separate a string or int with comma in python

string = input('Input')
    >>> 1,2
    print(cord.split(','))
    >>>['1', '2']
Posted by: Guest on March-31-2020
1

how to input comma separated int values in python

lst = list(map(int, input("Enter comma separated values: ").split(",")))
Posted by: Guest on September-25-2020

Code answers related to "comma seprated number string convert to int python"

Python Answers by Framework

Browse Popular Code Answers by Language