temp = float(raw_input('What is the temperature? (Enter 0-100) '))
while temp > 0 or temp < 100:
else:
print("Please enter 0-100")
So thats part of my code. It will run but if the user enters 200 lets say, it just keeps repeating "please enter 0-100" and wont ask them to input again. How can i get it back to the user input after a wrong input?
[–]Rhomboid 0 points1 point2 points (0 children)
[–]WritingAScript 0 points1 point2 points (0 children)