Teach students to change a variable in one step in Python with +=, *= and //=, and to use the editor to fix mistakes. Students follow values through chains of operators on paper, count whole groups and leftovers, and learn that ** works right to left. They read the Error panel, use auto-indent and tell a SyntaxError from a logic error.
Enter your email and we'll send you one password that unlocks every freebie on the site.
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 often type a shortcut like %= without knowing what it does to the variable, and they skip the error message when a program stops. This lesson traces each operator on paper first. Then students use the Error panel to find the line to fix.
The try-it on Day 1, the lab on Day 2 and the quiz task on Day 3 run online in CodeGrove, our in-browser code lab, so students need a computer or tablet on those days. The Warm-Up Arcade level practices using update operators and the editor's tools to finish and fix short programs. CodeGrove is free, with no accounts, sign-ins or installs.
Students turn off a test line, fix an error and finish two programs in CodeGrove.
Students follow a variable through a chain of update lines. They see that each line uses the old value to store a new one.
A SyntaxError stops the program at the line the Error panel names. A logic error gives a wrong answer with no message, so students must check the output themselves.
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.
Yes. Lesson 1.1 is completely free. Enter your email to get the library password, then use it to download this lesson and every other freebie on the site.
Enter your email once and we send you a single library password. Type that password in any "Unlock" box and every download turns on. Your device remembers it.
Students know comments, .append(), while loops and import random, and they can read an error message.
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.
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.