HELP Im currently using a book, but it seems like its wrong or something. This is what I enter:
round(10)
10
>>> round(10.0)
10
>>> round(10.2)
10
>>> round(8.7)
9
>>> round(4.5, 1)
4.5
>>> round(4.5, 2)
4.5
>>> round(4.5, 3)
4.5
>>> round (4.5)
4
>>> round(4.5)
4
Here is what the book says should happen:
round(10)
10
>>> round(10.0)
10.0
>>> round(10.2)
10.0
>>> round(8.7)
9.0
>>> round (4.5)
5
round(10.0, 1)--> 10.0. The docs say "digits (default 0 digits)." NOTE: This is for Python 2.7x