Question: If you run round(20.395,2) in Python 3, you get the number 20.39. In the Python documentation, we have the following statement: The round()
If you run round(20.395,2) in Python 3, you get the number 20.39.\ \ In the Python documentation, we have the following statement:\ \ The round() function rounding strategy and return type have changed. Exact halfway cases are now rounded to the nearest even result instead of away from zero. (For example, round(2.5) now returns 2 rather than 3.)\ \ Explain why round(20.395,2) returns 20.39 instead of 20.4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
