how do i input multiple values in one line?

You can do like this:

a, b, c, d, e = input("Insert the 5 values: ").split()
print(f"a: {a}\nb: {b}\nc: {c}\nd: {d}\ne: {e}")


1 2 3 4 5


a: 1
b: 2
c: 3
d: 4
e: 5

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top