So nehmen Sie mehrere Eingaben in einer Zeile in Python mit Listenverständnis ein

# taking two input at a time
x, y = [int(x) for x in input("Enter two values: ").split()]
print("x: ", x)
print("y: ", y)

# taking three input at a time
x, y, z = [int(x) for x in input("Enter three values: ").split()]
print("x: ", x)
print("y: ", y)
print("z: ", z)
Gifted Gorilla