Answers for "python take two inputs"

4

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()
Posted by: Guest on August-31-2021
0

get multiple inputs in python

x = list(map(int, input("Enter multiple values: ").split()))
print("List of students: ", x)
Posted by: Guest on December-25-2021

Code answers related to "python take two inputs"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language