Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- guess = input("guess my name > ")#variable guess que almacena el valor ingresado por el usuario
- count = 1
- while guess != "Sofi":#mientras variable guess sea diferente de Sofi
- guess = input("wrong, try again >")#escriba mensaje error, sigue intentando.
- count = count+1
- print("good job! it took " + str(count) + " time(s) gessing")#si acierto escribe buen trabajo.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement