I am trying to get two variables from one input like this:
x, y = input().split()
print(x, y)
But I want to make the y
variable optional, so if the user only inputs x
it would only print that value. I get a ValueError
if only inserted the x argument.
Anyone knows how to do this?