KS3 Puzzle 4 python – a better calculator

Code / algorithm aim

The finished program should allow the user to enter 2 numbers. The user will then be able to decide if they want to add, subtract, multiply or divide the 2 numbers and the program will output the correct answer.

You will need to follow the order of add, subtract, multiply and divide to complete this puzzle.

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:

Login    

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.