Intermission: Summary (so far)
We write programs to solve problems by,
-
Doing a sample problem by hand (so we're sure we know how to solve it).
-
Reflecting on our manual solution to identify the algorithm we are using.
-
Translating our algorithm into Python.
-
Entering, running and testing our program.
Variable names should be,
-
Meaningful.
-
Short.
-
All lowercase.
Understand the difference between print("rate")
and print(rate)
.
A complete program includes,
-
Documentation (at least file name, author, project).
-
Sufficient interface elements to make it usable by someone other the programmer.
A program isn't finished when it runs without errors; it's finished when you've confirmed the results are correct.