El usuario recibe tres oportunidades, lo que significa que necesitamos un comando pedir (ask) adentro del for loop.

  • Cambia el string en .say() a "Time to guess!"
  • Ve a y arrastra Ask for Integer adentro del for loop. Debe tener un ···· en frente de él.
  • Cambia el nombre en frente de .ask() a computer.
  • Cambia el string en .ask() a "What do you think my number is?"

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)