Blog Post

Trick or Code! Quick ideas to integrate CS concepts on Halloween


Here are a few quick ideas to integrate computer science concepts during the week of Halloween!


Image Source:
Made with Code Monster!
Python with Turtle output using loops
Image Source:
  • Create your own algorithm and programming challenges related to Halloween. For example:
    • Research the price of various bags of candy, then write a program to determine the most cost effective option for various amounts of trick-or-treaters: 5, 50,100, etc.
    • Create a survey to collect data from members of your community about their costume choices or type and amount of candy collected. Brainstorm what types of data might be interesting to analyze, then ask them to write a program to analyze the data.
    • Create a Sorting Hat program.
How do you integrate CS concepts in your Halloween celebrations?
We would love to hear your ideas.
Don’t forget to have fun and check your sugar levels!
Happy Halloween!
Jenn Vermillion is the Director of Innovative Learning at St. Catherine’s School, an independent school for girls age 3 through grade 12 in Richmond, VA. She teaches an introduction to computer science course for students in grades 9-12 and an 8th grade Creative Technologies course. She also coaches a 4th grade Robotics team and coordinates school-wide professional development. Jenn welcomes your comments and questions at


In reply to by Jared O'Leary


Profile picture for user
Submitted by Jennifer Vermillion on Mon, 11/12/2018 - 20:30

Jared, these are FANTASTIC ideas for using Scratch-thank you for sharing!! 



Profile picture for user BBURME1
Submitted by Brenda Burmeister on Wed, 10/31/2018 - 13:47

Super Cool!

I wish I was a student and was able to do Halloween coding this week!