Practice - while loop

 avatar
unknown
plain_text
3 years ago
276 B
4
Indexable
secretNumber = 23
guessedNumber = int(input("Guess a number: "))

while guessedNumber == 23:
    print("You guessed right. Nice job!")
    else:
        if (guessedNumber != 23):
        print("You guessed wrong. You shame your family and all your ancestors")
        continue
Editor is loading...