KS3 Puzzle 6 Challenge Python – random number guessing game

Code / algorithm aim

The program should produce a random number between 1 and 100. The guess number should be set to 0.

The program should keep asking the user to input a number, until their answer is right, between 1 and 100 and say if the number is too low or too high (it should check too low first) compared to the randomly generated number.

If the user guesses the correct number they should be told they are correct and the correct number displayed for them to see.

WAIT! You aren’t logged in.
By logging in you can earn CS points and keep track of what you have done. Do you want to:


Join Now

Instructions (click to view)

All the code that you need has been given below. Simply organise the code blocks into the correct order and indent where necessary (by dragging the code block to the right) so that the code follows the algorithm aim above.