Teach students to use code that other people wrote in Python. Students import datetime, os and json modules that come with Python and use a short docs page to write the call for each job. They sort Python's own syntax from API calls. Then they call a made-up weather API to pick the driest day for a field trip and save the plan as JSON.
● Instant download · Lifetime access · Editable & print-ready
Short coding levels practice this lesson in CodeGrove, our code lab that runs in the browser. Students write the program, run it and check it, with no account and nothing to install. Use them with the lesson or as practice later.
See the levels→Students may use a library without knowing where its calls come from, or mix up an API call with Python's own keywords. This lesson sorts words and lines into syntax and API calls and has students read a docs page before they write a call.
The try-its on Days 1 and 2, the lab on Day 3 and the quiz task on Day 4 run online in CodeGrove, our in-browser code lab, so students need a computer or tablet on those days. The Field Trip Forecast level practices calling the standard library's datetime, os and json modules and a made-up weather API, looping over its forecast, and saving a plan as JSON. CodeGrove is free, with no accounts, sign-ins or installs.
Students call a weather API in CodeGrove to pick the driest day and save a plan as JSON.
Task cards ask for one line of code for each of four jobs, and students find each call on the docs page.
Students call a weather API, read the numbers for a date from its response and save a dictionary with json.dumps().
Every page is a print-ready PDF, and the Google Forms™ and Google Slides™ let you teach the same lesson in Google Classroom™.
Students write and run real Python in CodeGrove, our in-browser code lab, on a computer or tablet, with no accounts or installs.
Every day has its own answer key, and every written question has a sample answer and what to look for.
Each day's plan is timed activity by activity against real reading and writing speeds.
Reviews help me a lot, and they help other teachers pick the right resources for their classes. It takes about a minute.
Leave a reviewInstant download right after checkout: PowerPoint and Word files you can edit, print-ready PDFs, and links that copy the Google Forms™ and Google Slides™ into your Drive.
Yes. This lesson is part of the Unit 7 bundle and the complete Python Programming 2 course. Both cost less than buying the lessons one at a time.
No. It is a full-year, non-AP second course in Python for grades 9 to 12. For AP, see our AP Computer Science A and AP CSP courses.
Students know how to read and write a file, .get() for a dictionary, and format specs like :.1f.
Yes, on the CodeGrove days. Each student needs a computer or tablet that's online, and CodeGrove needs no account or install. The bell ringers, notes, exit tickets and quiz are on paper.
Every page is a print-ready PDF. The slides are an editable PowerPoint and the guided notes an editable Word file. The exit tickets and the quiz also come as Google Forms™, and the deck as Google Slides™.
Written for Florida's Intermediate Programming course (9007220). The skills map in the lesson shows which standards each day teaches.