Advertisement
Andres_v

Untitled

Mar 5th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. guess = input("guess my name > ")#variable guess que almacena el valor ingresado por el usuario
  2. count = 1
  3. while guess != "Sofi":#mientras variable guess sea diferente de Sofi
  4. guess = input("wrong, try again >")#escriba mensaje error, sigue intentando.
  5. count = count+1
  6. 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