Learning objectives for chapter 4
Learn how to use built-in math functions in Python.
Learn how division with whole numbers works.
Learn how to round-off floating point numbers in console output.
Learn what are "code blocks" and how to use them to organize code.
  Learning objective(s) addressed
  1234
Exercises Right-click (or control-click on a Mac) the title to save its PDF to your system.  
4.1 A Simple Mortgage Calculator, v.1.0 PDF X XX
4.2 About Lighthouses, v.1.0 PDF X XX
4.3 My Savings Plan, v.1.0 PDF X XX
4.4 Division With Whole Numbers PDF  XX 

 
Samples Right-click (or control-click on a Mac) the title to save its PY file to your system.  
4.1 Rounding To The Nearest Penny PY X X 
4.2 Rounding To The Nearest Whole Number PY X X 

 
Videos  
4.1 Click HERE for a YouTube-like video that shows how to use the built-in math function for square root. This video is 13 minutes long. It's programming example is done in both Python and Java, on a Mac. XXXX

Code from the chapter in order of their appearance in the text
mort.py Formatting A Number With Decimal Digits mort2.py A Code Block With A Comment Line

Chapter 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15