Python: Variables and Conditionals

Students read short Python programs, trace how variables change, predict the output of if, elif and else statements, 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 from $9.99 a month for unlimited downloads.

Grade
Grade 7
Subject
Technology
Skill
Trace variables and predict the output of if, elif and else statements in Python
Time
About 35 minutes
Includes
9 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.