+ 1
I cant understand why there isn't any output for this:
i= int(input("How much money do you have?") while i >= 1000: print("YOU ARE RICH!!!") else: print("YOU ARE BROKE!!!")
1 Respuesta
+ 3
use if instead of while. using while will make a loop that will run until the condition is false. but the value of i never change, thus it's an infinite loop.
use if to peform a single check, instead of while