How do you round a whole number in Python?
The math. ceil() method rounds a number up to the nearest whole number while the math. floor() method rounds a number down to the nearest whole number. These two methods are both accessible through the math module.