Coding Task: 03.03 Rubber Ducky

Let’s try something harder. Changing Colour multiple times on the same line! In the end we’re going to come out with a colourful image of a duck in a pond.

    __
  <(o )___
   ( ._> /
~~~~`---'~~~~

Your Task

In the editor below, complete the code so that the program displays a colourful duck on the screen. See the example section below for what it should look like! Here is your Colour reference sheet:

Python Reference Sheet

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

Requirements

  • The program should run without any errors.
  • The program should display a colourful image of a duck onto the screen. Each part of the duck (e.g. the beak, the pond, the eyes) should have a different Colour.
  • Hint: You’ll need to use Colour.reset a lot in this one. Try putting one at the end of every single print() line, so that the next line starts off with the classic white text on a black background. You’ll find it easier to get the colours on each line right that way!

Example

Below is an example of how the program should run:

Scroll to Top