COMPRUEBE LA COMPRENSIÓN: ¡Aquí hay algunas preguntas para que revise lo que ha aprendido!

  • Hacer clic Ejecute y escriba su respuesta en el cuadro de entrada del usuario.
  • Responde las preguntas haciendo clic en las respuestas correctas.
  • Hacer clic Enviar y Siguiente para continuar.

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

sprite = codesters.Sprite("person1") # question answer = sprite.ask("Did you do your homework?") answer = answer.lower() # check what answer is equal to if answer == "yes": # if answer is yes, do this sprite.go_to(-3, -5) sprite.say("Cool, I can go to the beach!") # check what answer is equal to if answer == "no": # if answer is no, then do this sprite.go_to(3, -5) sprite.say("I better stay home then.")
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)