round off math python code example Example 1: round number python] x = round(5.76543, 2) print(x) # 5.77 Example 2: rounding numbers in python >>> round(2.5) 2