Coding Task: 05.01 Guess My Height

Can you guess how tall I am? I’ll give you hints along the way!

Your Task

Use the completed worksheet from the previous activity to complete the program in the editor below.

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 ask the user to make guesses until they get the correct answer.

Example

Below is an example of how the program should run:

How tall do you think I am?
Enter your guess (in cm): 120
That's too short!

How tall do you think I am?
Enter your guess (in cm): 180
That's too tall!

How tall do you think I am?
Enter your guess (in cm): 160
You got it!

Scroll to Top