Wednesday, August 26, 2009

Chapter 2 -- Page 47 -- Second line and Session 2.1

This line of text refers to floating point division and states that it is necessary for one of the operands to be a floating point number. This is NOT necessary. Division ("single slash") in Python 3 is always assumed to be floating point. So 22/7 will yield the correct result.

22.0, 355.0, and 9801.0 can simply be 22, 355, and 9801 in Session 2.1

No comments:

Post a Comment