Coding Task: 02.04 Ribbit (Extension)

In this extension task, you will make changes to an animation of a frog eating a fly. Start off by running the code and watching the animation! Once you’ve done that, read the instructions below.

Your Task

In the editor below, look through the existing code and see if you can make the changes listed in the requirements section below. Don’t worry if you break the code! Just click the Reset button and try again!

Requirements

  • The program should run without any errors.
  • Edit the code to change the symbol for the fly (* by default).
  • Edit the code to change what the frog says when it eats the fly (yum! by default).
  • Edit the code to add extra frames to the beginning of the animation, so that we can see the fly come in from the left hand side of the screen.

Example

Below is an example of how the program should run:

Python Reference Sheet

Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:

License Information

The original animation was sourced from here.

Scroll to Top