swim_length =int(input("Please enter a swim length: "))
while swim_length < 0:
print("The length has to be a positive number")
swim_length=int(input("Please enter a positive number: ")
Hi could anyone help me with this, im sure i made a simple mistake but i can't figure out where exactly.
)at the end of last line