Prelab 7 Due: 8:00AM on 2021-11-05

Note: On the this lab you will again be able to work in pairs.

After reading through the lab assignment, create starter files for both and with “stubs” (i.e., function headers and the pass statement) for any required function. In particular, needs to have a stub for the function get_temperature (which takes a string parameter representing a zipcode). And both files should have a docstring at the top with a one-line description of the program, then a blank line, then subsequent lines with information such as your name, section, and assignment name (similar to previous assignments).

Submit your programs via Gradescope as you would for the lab assignment itself. Your files must be named and, and you must submit both files at the same time. You can submit multiple times, with only the most recent submission (before the due date) graded.

To further prepare for the assignment:

  1. Try out the following functions so you understand what they do and how they work. Once you have figured out how these functions work, write appropriate docstrings. I encourage you to include these functions (and your newly written docstrings) in your file (although you not required to do so).

    import datetime
    def get_hour():
        now =
        return str(now.hour)
    def get_date():
        now =
        return str(now.month) + "-" + str( + "-" + str(now.year)
  2. On your own computer try running python3 (or python on Windows) from the command line as demonstrated in class. That is open the system shell from the Thonny menu “Tools->Open System Shell…”
  3. Make sure you understand the relationship between the two programs/modules and I encourage you to write out preliminary designs for your programs on paper in pseudocode.