I made a loop that lets the user input numbers until he enters '13', then the loop will break.
while True:
number = int(input())
if number == 13:
print("goodbye")
break
When I run this program it looks like this:
1
2
3
13
goodbye
But I want the input to continue in the same line whenever I hit enter like this:
1 2 3 13
goodbye
How can I do that?