Module 2: Practice Zone

Let's crunch some numbers and understand Python's arithmetic!

Operator Spotlight

Python uses symbols for math. Click on the highlighted operator in each expression below to learn its name.

Identify all operators!

Calculation Simulator

Use the `print()` function to perform simple calculations. Try things like `print(100 + 50)`, `print(25 * 4)`, or `print(30 / 5)`. Click "Run Simulation" to see the result.

Result will appear here...

Order of Operations

Python follows mathematical order of operations (like PEMDAS/BODMAS). In the expression below, click on the operator (`+` or `*`) that Python will calculate first. Then click "Check Answer".

Predict the Output

Calculate the result of the following Python code in your head or on paper, considering operator precedence. Type your predicted answer in the box and check it.

print((4 + 6) * 3 - 8 / 2)

Numerical Mini Missions!

Apply your knowledge! Complete these coding tasks involving arithmetic operators. Use the simulated output to check your results.

Mission 1: Rectangle Area

Write a Python command using `print()` to calculate the area of a rectangle with width `12` and height `5`. (Area = width * height).

Mission 2: Average Score

Calculate the average of three test scores: `85`, `92`, and `78`. Use `print()` and remember parentheses might be needed for correct order!

Mission 3: Division Details

Use two separate `print()` commands. The first should show the result of `17` floor divided by `5` (`//`). The second should show the remainder of `17` divided by `5` (`%`).

Module 2 Practice Complete!

Great calculation skills! You've grasped Python's arithmetic operators and precedence.
Ready for more complex challenges? Head to the Advanced Practice for Module 2!