Coding Task: 05.03 Guess My Number

I am thinking of a number between 1 and 100… can you guess it?

Your Task

Using the flowchart below, 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 guess a new number between 1 and 100 until they get the correct answer, telling them each time if the answer is higher or lower than what they guessed.

Example

Below is an example of how the program should run:

I'm thinking of a number between 1 and 100...
Can you guess it?

Enter your guess: 23
Nope, my number is higher!

Enter your guess: 87
Nope, my number is lower!

Enter your guess: 48
Nope, my number is higher!

Enter your guess: 56
You got it!

Bye now!
Scroll to Top