Lesson 18 — Checkpoint 1: closed book
Unit II · Computational problem solving

L18_blueprint.txt                            student     Published blueprint: categories, item types, conditions, exclusions, how to use the sets
L18_practice_key.txt                         student     Answer key for the practice set
L18_practice_p3.py                           student     Practice P3 program: predict the output
L18_practice_p4.py                           student     Practice P4 program: trace a loop
L18_practice_p5_broken.py                    student     Practice P5 program: raises on purpose for traceback reading
L18_practice_p7.py                           student     Practice P7 program: verify a claim about output
L18_worked_example.py                        student     Worked tracing example from the reading
L18_setA.txt                                 student     Printable Set A
L18_setB.txt                                 student     Printable Set B
L18_setA_key.txt                             student     Printable answer key, Set A
L18_setB_key.txt                             student     Printable answer key, Set B
L18_A_q4.py                                  student     Set A item q4: program; output copied into the key
L18_A_q5.py                                  student     Set A item q5: program; output copied into the key
L18_A_q6.py                                  student     Set A item q6: program; output copied into the key
L18_A_q7.py                                  student     Set A item q7: program; output copied into the key
L18_A_q8.py                                  student     Set A item q8: program; output copied into the key
L18_A_q9_broken.py                           student     Set A item q9: raises on purpose; traceback pasted into the item
L18_A_q9_check.py                            student     Set A item q9: check script for the values at the moment of the error
L18_A_q10.py                                 student     Set A item q10: runs cleanly and prints a wrong answer (off by one); output copied into the item and key
L18_A_q10_check.py                           student     Set A item q10: check script: the program as given, the repair, and the proposed non-fix
L18_A_q12_broken.py                          student     Set A item q12: raises on purpose for the empty list; traceback pasted into the key
L18_A_q12_check.py                           student     Set A item q12: check script: the normal-list example
L18_B_q4.py                                  student     Set B item q4: program; output copied into the key
L18_B_q5.py                                  student     Set B item q5: program; output copied into the key
L18_B_q6.py                                  student     Set B item q6: program; output copied into the key
L18_B_q7.py                                  student     Set B item q7: program; output copied into the key
L18_B_q8.py                                  student     Set B item q8: program; output copied into the key
L18_B_q9_broken.py                           student     Set B item q9: raises on purpose; traceback pasted into the item
L18_B_q9_check.py                            student     Set B item q9: check script for the values at the moment of the error
L18_B_q10.py                                 student     Set B item q10: runs cleanly and prints a wrong answer (off by one); output copied into the item and key
L18_B_q10_check.py                           student     Set B item q10: check script: the program as given, the repair, and the proposed non-fix
L18_B_q12.py                                 student     Set B item q12: program; output of 29, 30 and 31 copied into the key

Python 3.11 or newer. Standard library only. Run each program from the folder the lesson tells you to put it in:
    python <file>.py        (Windows)
    python3 <file>.py       (macOS and Linux)
