Practice - while loop

mail@pastecode.io avatar
unknown
plain_text
2 years ago
276 B
1
Indexable
Never
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