Please enable JavaScript to use CodeHS

Hour of Code

Explore one-hour coding activities and lesson plans for your classroom.

35 activities

Hour of Code: Programming with Karel the Dog

Giving commands to a computer, which is what programming is all about, is just like giving commands to a dog. Learn how to code with Karel the Dog—a …

Hour of Code: La Programación con Karel el Perro

Dar órdenes a una computadora, que es lo que la programación se trata, es como dar órdenes a un perro. Aprende a codificar con Karel el perro, una …

Hour of Code: Graphics with Tracy the Turtle

Learn the basics of programming by drawing shapes on your screen with Tracy the Turtle! Turtle Graphics (or LOGO) is a beginner friendly way to explore programming concepts …

Hour of Code: Web Design with CodeHS

Learn the basics of building and designing a website! Use HTML to add text, pictures, and color to your page. These skills are the foundation for all website …

Hour of Code: Digital Art in Pixels

Learn how images are stored and displayed on computers using pixels. Explore how images are encoded as a grid of color values, and make your own digital images …

Hour of Code: Coding in Python with CodeHS

Learn the basics of coding with the Python programming language by writing programs that you can interact with! This hour will cover printing, variables, math, and getting information …

Hour of Code: Generating Beats with Code

Students are introduced to the JavaScript block coding environment. They learn how to write a program that plays their own 8 count beat pattern.

Hour of Code: Generating Art with Code

Students are introduced to the JavaScript block coding environment. They learn how to create a computer program that places images and text on a canvas to create their …

Hour of Code: Coding in Sports

Students are introduced to the JavaScript block coding environment. Students curate the environment of their own sports video game.

Hour of Code: Punnett Squares

In this hour of code, students will create a program that will solve for allele pairs based on user input. Students will program with Tracy the Turtle in …

Hour of Code: Building Mathematical Models

Students are introduced to Tracy the Turtle and learn how to code different mathematical models in Python! No coding experience is necessary, but students should have completed Algebra …

Hour of Code: Explore the Bitcoin Ledger

This Hour of Code looks at how transactions work on the Bitcoin ledger and investigates the overall performance of the Bitcoin blockchain.

Hour of Code: Coding for a Litter-Free Community

In this Hour of Code, students learn about how they can use computer science to help solve one of the biggest problems facing our world today: litter and …

Hour of Code: Supporting Artists with Code

This Hour of Code begins with an overview of how coding has impacted the art community by providing real-world examples. In the final lesson, Code an Online Shop, …

Hour of Code: Creating Virtual Worlds

Learn the basics of building virtual reality worlds using HTML and the A-Frame JavaScript Library. Through this activity, students will build their own virtual reality worlds that are …

Hour of Code: Creating Apps with JavaScript

This activity gives you some examples on how to make your first real mobile apps and how to test them out on your phone. To run apps on …

Hour of Code: React Native Mobile Apps with CodeHS

This activity gives you some examples on how to make your first real mobile apps and how to test them out on your phone. To run apps on …

Hour of Code: Coding in Java with CodeHS

Learn the basics of the Java programming language. This hour will cover printing, variables, types, and getting information from users. Write a program that take in and stores …

Hour of Code: Collision Simulations

Students will explore how mass and speed affect elastic collisions by using conservation of momentum and conservation of kinetic energy equations to verify final speed values as calculated …

Hour of Code: JavaScript Graphics Art

Make your own graphics and drawings on the web using JavaScript. Learn how to use our JavaScript graphics library to make pictures by adding and modifying shapes to …

Hour of Code: Explore Blockchain Technology

This Hour of Code is an introduction to cryptography, hashing and blockchain technology, which is the foundation of Bitcoin.

Hour of Code: Coding with Data Visualizations

Coding with Data Visualization is an hour long coding lesson that teaches students about the power of using data visualizations to display data in meaningful and easy to …

Hour of Code: Pi Day

Have you ever wondered how many digits of Pi are really needed? Using Java, students will explore the impact of using different numbers of Pi digits in their …

High School Cyber Missions

Step into a secret cyber mission on the CodeHS Cyber Range. Crack clues, explore cybersecurity, and follow your pathway from recruit to defender.

Middle School Cyber Missions

Step into a secret cyber mission on the CodeHS Cyber Range. Crack clues, explore cybersecurity, and follow your pathway from recruit to defender.

Unplugged: Color by Pixel

Learn to make your own art with pixels in this unplugged tutorial. This tutorial teaches students about coordinates, what pixels are, and how to create drawings by setting …

Unplugged: Coding with Karel the Dog

Karel is a dog that only knows how to move, turn left, and place tennis balls in his world. You can give Karel these commands to instruct him …

Unplugged: Caesar Cipher Wheel

In this Hour of Code, students are introduced to cryptography by using the classic Caesar cipher to decrypt and encrypt some messages, and also discover the cipher's flaw …

Create a Drawing App

Create a drawing app in Scratch, which others can use to create their own unique artwork! Using events and loops, students will code and test a program that …

Lower Elem: Program an Adaptation: Camouflage

Use code blocks to animate your own story in ScratchJr! Students will learn the basics of events and sequences in programming as they use symbolic blocks to code …

Upper Elem: Digital Greeting Card

Design a digital greeting card with CodeHop Blocks! Students use events and loops to code a card they can share with friends and family.

Lower Elem: Digital Greeting Card

Create a digital greeting card with CodeHopJr Blocks! Students use events and loops to code a card they can share with friends and family.

Puppy Adventure

Pixel the puppy was enjoying a nice day out with his family, but they forgot to put him in the car and left without him! Can you program …

Spin Draw

Draw patterns with code! Design your own magic pen and create colorful, spinning works of art.

Bird Mayhem

Use coding and physics properties to program a bird to bounce around your screen and spawn more bouncing birds when you click on it.