CHECK FOR UNDERSTANDING: Here are a few questions for you to review what you've learned!

  • Click Run and type your answer in the user input box.
  • Answer the questions by clicking on the correct answers.
  • Click Submit and Next to continue.

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.")