Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to take two inputs in a single line in python

x, y = input("Enter a two value: ").split()
print("Number of boys: ", x)
print("Number of girls: ", y)
print()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inputs #single #line #python
ADD COMMENT
Topic
Name
2+2 =