Watch Me Code 4: Guess My Name

This program will execute until you guess my name.


In [1]:
name = "Mike"
guess = ""
while True:
    guess = input("Guess my name? ")
    if guess== name:               
        print("You guessed it, finally!")
        break
    print("Nope...not it!")


Guess my name? tony
Nope!
Guess my name? Steve
Nope!
Guess my name? Mike
You guessed it, finally!

In [ ]: