ADVERTENCIA : Este programa tiene un error de lógica, por lo que debemos depurarlo.

REGLA: Cada función necesita ser llamada para ejecutarse. Esto incluye la función principal.

  • Hacer clic Corre y verás que en el escenario no pasa nada .
  • Arregla el programa para que el escenario esté listo. Nota: ¡Asegúrese de llamar a todas las funciones!
  • Hacer clic Ejecute para probar si arregló el programa. Cuando esté arreglado, haga clic en Enviar y siguiente

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

#This program will recreate the story of the 3 little pigs def set_stage(): """ Sets up the stage for the start of the story """ stage.set_background("barn") sprite = codesters.Sprite("pig",-100,-125) def main(): """ Sets up the program and calls other functions """ set_stage()
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)