two input in one line python

x, y = input("Enter a two value: ").split()
print("Number of boys: ", x)
print("Number of girls: ", y)
print()

Here is what the above code is Doing:
1. It’s asking the user to input two values, separated by a space.
2. It’s storing those two values in the variables x and y.
3. It’s printing the values of x and y.