Python: Variables and Conditionals

A full lesson on reading Python: variables, assignment and if, elif, else, with two programs traced line by line and hinted practice. Students then trace four short programs, find a bug and write a small program of their own.

First page of the worksheet “Python: Variables and Conditionals”
Download PDF

For members. Join for $119.88 a year to download every Grade 7 worksheet.

Grade
Grade 7
Subject
Technology
Skill
Trace variables and predict the output of if, elif and else statements in Python
Time
About 55 minutes
Includes
15 questions, answer key, teaching notes

Standards

  • CSTA 2-AP-11

    Create clearly named variables that represent different data types and perform operations on their values.