Outline for January 16, 2019

Reading: §2.10, 3.7, 6.11


  1. Fibonacci numbers [fib.py]
  2. Input
  3. Output [printing.py]
    1. Printing without format
    2. Printing with format using %
    3. Printing with format using format method
  4. Getting help in IDLE
  5. continue and break statements in loops [loop1.py]
  6. import statement
    1. import math [hypotnoex1.py]
    2. Need the “math.” before “sqrt”
    3. from math import sqrt [hypotnoex.py]
    4. Do not need the “math.” before “sqrt”
    5. Now add in exception handling [hypotex.py]
  7. Full version of the hypotenuse program

Matt Bishop
Department of Computer Science
University of California at Davis
Davis, CA 95616-8562 USA
Last modified: Version of January 15, 2019 at 8:55PM
Winter Quarter 2019
You can get a PDF version of this