Please enable JavaScript to use CodeHS

CodeHS
  • Products

    Elementary | Middle

    CodeHop Standards aligned coding for districts Tynker Gamified coding and apps Typing Easy to use typing for schools

    Middle | High

    CodeHS Pro Comprehensive CS platform Certifications Industry based credentials for CTE Cyber Range Interactive environment for cybersecurity labs

    AI

    AI Creator Easily create lessons with AI Vibe Coding Guided AI coding for students Bool AI coding and prototyping

    Use Cases

    Districts Schools Teachers
    View All Products
  • Products Explore what CodeHS has to offer for districts, schools, and teachers
    • Elementary | Middle
    • CodeHopStandards aligned coding for districts
    • TynkerGamified coding and apps
    • TypingEasy to use typing for schools
    • Middle | High
    • CodeHS ProComprehensive CS platform
    • CertificationsIndustry based credentials for CTE
    • Cyber RangeInteractive environment for cybersecurity labs
    • AI
    • AI CreatorEasily create lessons with AI
    • Vibe CodingGuided AI coding for students
    • BoolAI coding and prototyping
    • Use Cases
    • DistrictsComprehensive solutions for districts
    • SchoolsTools and resources for schools
    • TeachersEmpower educators in the classroom
    • View All Products
  • Platform

    Teaching

    Assignments Create & configure your course assignments Classroom Manage & organize your class Grading Streamline your grading workflow

    Tools

    Data Track & analyze student progress data Write Code Write, run, & debug code in a web-based IDE Integrations Connect CodeHS to your district's platform
  • Platform
    • Assignments
      Create & configure your course assignments
    • Classroom
      Manage & organize your class with customizable settings
    • Grading
      Streamline your grading workflow.
    • Data
      Track & analyze student assessments & progress data
    • Write Code
      Write, run, & debug code all in a web-based IDE
    • Integrations
      Connect CodeHS to your district’s educational platform
  • Curriculum

    Computer Science Curriculum

    Customizable K-12 CS curriculum

    Overview
    Course Catalog
    • AP Courses
    • AI
    • Interdisciplinary
    • Spanish Courses
    K-12 Pathways
    • Elementary School
    • Middle School
    • High School
    Standards States Supplemental
    • Practice
    • Tutorials
    • Digital Textbooks
  • Curriculum Customizable K-12 Computer Science Curriculum
    • Course Catalog
      • AP Courses
      • Interdisciplinary
      • AI
      • Spanish Courses
    • K-12 Pathways
      • Elementary
      • Middle School
      • High School
    • States
    • Standards
    • Practice
    • Tutorials
    • Digital Textbooks
  • Professional DevelopmentPD

    Professional Development

    Online & in-person training to help teachers grow.

    Overview
    Online PD Courses In-Person & Virtual Workshops AI PD Free PD Events
    PD Cohorts Teacher Certification Prep Microcredentials PD Membership
  • Professional Development Online & In-Person Training for Teachers
    • Professional Development
    • Online PD Courses
    • In-Person & Virtual Workshops
    • AI PD
    • PD Cohorts
    • Free PD Events
    • Teacher Certification Prep
    • Microcredentials
    • PD Membership
  • Online IDE

    Online IDE

    Write, run, & debug code right in your browser — no setup required.

    Overview

    Explore our languages

    • JavaScript
    • Python
    • Java
    • HTML
    • C++
    • SQL

    Start a new project

    Open a blank sandbox in any language.

  • Online IDE Write, Run, & Debug Code in an Online IDE
    • Online IDE
    • JavaScript
    • Python
    • Java
    • HTML
    • C++
    • SQL
    • Karel
  • Resources

    Company

    About Learn about the CodeHS mission Privacy Center Our privacy & security practices Case Studies How schools succeed with CodeHS Testimonials What educators say about CodeHS

    Community

    Read Write Code Blog News & stories from CodeHS Coding in the Wild Real world coding stories CodeHS on X Posts & highlights from our feed Student Projects Explore projects built by students

    Explore

    States CS resources for your state Knowledge Base Help articles & how-tos Career Center Explore careers in tech
  • Resources
    • About
    • Privacy Center
    • Case Studies
    • States
    • Testimonials
    • CodeHS on X
    • Read Write Code Blog
    • Coding in the Wild
    • Knowledge Base
    • Student Projects
    • Career Center
  • Request a Quote
  • Log In
  • Sign Up

New Sandbox Program

Click on one of our programs below to get started coding in the sandbox!

Java

JavaScript

Python 3

HTML

Karel

Turtle

View All

Exercise Combine dictionaries

5 points

Exercise 5 points
This code has diverged from the student’s work.