Vanos a utilizar la imagen aleatoria que hemos generado,.

  • Ve a y arrastra if adentro del interval event.
  • Cambia la test variable a rand_img y cambia el test value to "shark".
  • De arrastra Change Image dentro del if statement. Asegúrate que tiene ········.
  • Cambia el nombre delante del comando .load_image() a fish. Cambia la imagen a "shark".

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)