PY/MATH
Home
Challenges
Concepts
Progress
Final Project
0 XP
·
L1
EN
NO
☾
⚙
← Challenges
Arithmetic · Easy
Round to Decimals
Write `round_to(x, n)` rounding `x` to `n` decimal places.
Examples
Input:
round_to(3.14159, 2)
Output:
3.14
solution.py
○ Loading…
Reset
Loading...
Run code
Check solution
Console
Test cases
round_to(3.14159, 2)
PENDING
round_to(2.71828, 3)
PENDING
Hidden
PENDING
Hints
Reveal next hint
>_