KS3 Puzzle 6 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 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 so that the code follows the algorithm aim above.

You can organise the blocks by clicking on the arrows on the right hand side to place them above or below the other blocks.