Distance = input("How far are you from the spacecraft in meters? (full positive numbers) \n") number = Distance.isdigit() while number == False: print ("Please enter a number or full number") Distance = input("How far are you from the spacecraft in meters? (full positive numbers) \n") number = Distance.isdigit() while Distance < 600: print ("Please move back further from the space craft! \n") Distance = input("How far are you from the spacecraft in meters? (full positive numbers) \n") So I am trying to compare a string to a integer but I'm not sure how to fix that with out breaking this part
number = Distance.isdigit() while number == False:
Distance = int(input("blabla"))