
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.
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.
ENTER. ENTER, it should:
clear() function)print commands!) and just change the | characters to something else, like #!Below is an interactive demo of how the program should run. Play around with the program to see how your program should also behave.
Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:
Need some help? Click here to reveal a video walkthrough for this task!
You must be logged in to post a comment.