int round python code example Example 1: round to the nearest integer python int(round(x)) Example 2: round number python] x = round(5.76543, 2) print(x) # 5.77