Trick-or-Treat Tracker: Loops and Conditionals

Students trace three short Halloween-themed Python programs that use for loops, while loops, lists and if statements, then predict the output and change the code.

First page of the worksheet “Trick-or-Treat Tracker: Loops and Conditionals”
Download PDF

For members. Join from $9.99 a month for unlimited downloads.

Grade
Grade 6
Subject
Technology
Skill
Trace a program that combines loops and conditionals and predict its output
Time
About 40 minutes
Includes
9 questions, answer key, teaching notes
Occasion
Halloween

Standards

  • CSTA 2-AP-12

    Design and iteratively develop programs that combine control structures, including nested loops and compound conditionals.