PASO 7: ¡Estamos listos para que el usuario comience a adivinar letras! Démosles 10 intentos.

  • Desde agregue Loop with Range al final del programa.
  • Cambie el número en range() de 5 a 10 . ¡Esto establecerá el número de conjeturas que tienen!
  • Haga clic en GRÁFICOS y vaya a . Agregue Stage Ask con sangría dentro del bucle.
  • Cambie la choice a letter_guess y establezca los argumentos en .ask() a ( "Guess a letter!" , 0 , - 200 )

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)