fork download
  1. print("Welcome!")
  2. guess=0
  3. while(guess!=5):
  4. g = input("Guess the number: ")
  5. guess = int(g)
  6. if guess == 5:
  7. print("You win!")
  8. else:
  9. answer = "You lose!"
  10. while answer != "You lose!":
  11. answer = input("Change a number ")
  12. print("You lose!")
Runtime error #stdin #stdout 0.08s 10872KB
stdin
Standard input is empty
stdout
Welcome!
Guess the number: