◐ Shell
clean mode source ↗

Hour of Code | CodeHS

Try an Hour of CodeTM with CodeHS


Hour Long Tutorials


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 fun, accessible, and visual introduction to text or block-based programming that teaches fundamental concepts like commands and functions to beginners.

  • LevelBeginner

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 introducción divertida, accesible y visual a la programación que enseña conceptos fundamentales como comandos y funciones a principiantes absolutos. Los estudiantes pueden programar en bloques o texto.

  • LevelBeginner

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 and bring creativity into programming in a visual way.

  • LevelBeginner

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 creation and is a great activity for students who are interested in the internet and how websites come to life!

  • LevelBeginner

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 using binary and hexadecimal color codes!

  • LevelBeginner

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 from users. Write a program that take in and stores data from a user and returns a unique response!

  • LevelBeginner

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.

  • LevelBeginner

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 own meme.

  • LevelBeginner

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.

  • LevelBeginner

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 Python to make this happen. Students should have prior knowledge of basic biology concepts and Punnett Squares before beginning this activity.

  • LevelBeginner

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 I or higher.

  • LevelBeginner

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.

  • LevelBeginner

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 waste. Students start by exploring real world examples of how engineers are using computer programming to reduce the amount of litter in their community. Then, they choose between two programming adventures: Clean Up with Karel or Web Design for a Litter-Free Community. In Clean Up with Karel, students learn the basics of programming in Python by giving commands to Karel. In Web Design for a Litter-Free Community, students learn the basics of HTML by creating their own webpage.

  • LevelBeginner

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, learners are given a real-world coding assignment that will reinforce what they’ve covered in the previous lesson. Using the fundamentals of HTML, learners will have the opportunity to create an online shop mockup.

  • LevelBeginner

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 understand ways. Students will learn about several types of data visualizations and how they can be used to represent data, as well as practice creating them using a JavaScript library.

  • LevelAdvanced

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 calculations. This course is designed for students that are familiar with print statements and basic loops & conditional statements in Java.

  • LevelAdvanced

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 pixels to be different colors. A great offline, visual activity.

  • LevelBeginner

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 to do certain things. This tutorial is a great activity for classrooms without computers

  • LevelBeginner

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 and how to improve upon it.

  • LevelBeginner

Upper Elem: Drawing and Scratch

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 receives user input to create colorful artwork.

  • LevelBeginner

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 their characters.

  • LevelBeginner

What is Hour of CodeTM ?

Hour of Code is a nationwide initiative by Computer Science Education Week and Code.org to introduce millions of students to one hour of computer science and computer programming. Get started with your hour of code today on CodeHS.

CodeHS Resources

Choosing the Right Tutorial

Need help picking a tutorial? Use this chart to help you choose the right tutorial for your students.

View Chart

Coding in the Wild

Learn about applications of coding and computer science from various industry professionals.

View Blog

What is CodeHS?

Discover more about CodeHS and learn about the various tools and resources offered by CodeHS.

View PDF

After Hour of Code Resources

Teacher Guide

Interested in continuing to teach computer science in your classroom? Check out this guide for what to do next.

View PDF

Admin Guide

Learn how to bring a full computer science pathway to your school or district.

View PDF

Parent Guide

Find out how you can help bring more computer science education to your children's schools.

View PDF