python print int(x) round code example Example 1: round to the nearest integer python int(round(x)) Example 2: python round to nearest integer Variable = int(round(Variable))