Step 1 of 8

Step 1 · Read and run

round()

Division often gives long decimals. round() tidies them up.

  • round(number, 2) rounds to 2 decimal places. The second number says how many places to keep.
  • round(number) with no second number rounds to the nearest whole number, and gives an int.

Run it.

Run the program to carry on.
round.py

Output

Press Run to see what your program prints.