Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to take two inputs in a single line in python

# taking multiple inputs at a time separated by comma
x = [int(x) for x in input("Enter multiple value: ").split(",")]
print("Number of list is: ", x)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #inputs #single #line #python
ADD COMMENT
Topic
Name
5+1 =