All problems
EasyPython Basics
Rounding decimals
Round 3.14159 to 2 decimal places and 7.7 to a whole number.
- #math
- #round
Sample input
3.14159, 7.7
Sample output
3.14 8
round-numbers.py
Output
Press "Run code" to execute.
Loading…
Round 3.14159 to 2 decimal places and 7.7 to a whole number.
3.14159, 7.7
3.14 8
Press "Run code" to execute.