Coding Task: 02.05 Fuzzy Hedgehog

In this exercise you will be writing code to draw two hedgehogs. The first hedgehog looks like this:

     .|||||||||.
    |||||||||||||
   /. `|||||||||||
  o__,_||||||||||'

You’ll also learn how to use the clear function. The clear function looks like this in Python:

clear()

The clear function will clear the screen. Anything you print afterwards will be on a new, blank screen.

Your Task

In the editor below, complete the code so that the program displays the hedgehog shown above on the screen, waits for the user to press ENTER, clears the screen, and then prints a second hedgehog with fuzzy fur.

The first hedgehog has been completed for you.

Requirements

  • The program should run without any errors.
  • The program should display the first hedgehog, then wait for the user to press ENTER.
  • Once the user presses ENTER, it should:
    • clear the screen (remember to use the clear() function)
    • display the second hedgehog.
  • The second hedgehog should have different fur. Check out the example image below for reference.
  • Hint: Once you have finished the first hedgehog, you can copy and paste the code code (including all the print commands!) and just change the | characters to something else, like #!

Example

Below is an interactive demo of how the program should run. Play around with the program to see how your program should also behave.

Python Reference Sheet

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

Scroll to Top
Scroll to Top