1# round(number, decimals).
2# second parameter is optional, defaults to 0.
3
4num1 = 1.56234
5num2 = 1.434
6
7print(round(num1)) # output: 2
8print(round(num2)) # output: 1
9print(round(num1, 3)) # output: 1.562
10print(round(num2, 1) # output: 6.3