Tutorials | CodeHS
https://codehs.com/tutorial/ • 322 KB fetched Open original page
Tutorials | CodeHS
Toggle navigation
*
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
*
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 Comprehensive solutions for districts
*
Schools Tools and resources for schools
*
Teachers Empower 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
Academic Integrity
Build a culture of honesty in your classroom
QuizBuzz
Run gamified, interactive quizzes with your class
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
AI Tools
The most complete AI toolkit in CS education
LOGIC
Measure student growth with pre- & posttests
*
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
*
AI Tools
The most complete AI toolkit in CS education
*
Academic Integrity
Build a culture of honesty in your classroom
*
QuizBuzz
Run gamified, interactive quizzes with your class
*
LOGIC
Measure student growth with pre- & posttests
*
Curriculum
Computer Science Curriculum
Customizable K-12 CS curriculum
Overview
Course Catalog
* AP Courses
* AI Courses
* Interdisciplinary
* Spanish Courses
* AI Literacy
* Digital Literacy
* Cybersecurity
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 Courses
* Spanish Courses
* AI Literacy
* Digital Literacy
* Cybersecurity
* K-12 Pathways
*
* Elementary
* Middle School
* High School
* States
* Standards
* Practice
* Tutorials
* Digital Textbooks
*
Professional Development PD
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
* C++
* SQL
* HTML
* Tracy
* Blocks
* p5.js
Start a new project
Open a blank sandbox in any language.
New project
*
Online IDE
Write, Run, & Debug Code in an Online IDE
* Online IDE
* JavaScript
* Python
* Java
* HTML
* C++
* SQL
* Karel
* Tracy
* Blocks
* p5.js
*
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
*
*
Curriculum
*
Tutorials
Tutorials
Level up your coding skills with interactive tutorials
Explore our latest free tutorials below
javascript
High School
Visualizing Music with JavaScript
Launch Tutorial
Cybersecurity
* Cybersecurity
Don't Fall for a Phishing Email!
By Jennifer Campbell
High School
Middle School
* Cybersecurity
* Dictionaries
How Strong is Your Password?
By Jennifer Campbell
High School
Middle School
* Cybersecurity
Digital Forensics
By Jennifer Campbell
High School
Getting Started
* Getting Started
Hello world
By Jeremy Keeshin
High School
Middle School
* Getting Started
* Java
java
Printing in Java
By Evelyn Hunter
High School
* Getting Started
* Python
python
Printing in Python
By Evelyn Hunter
High School
Java
* Getting Started
* Java
java
Printing in Java
By Evelyn Hunter
High School
* Lists
* Java
java
Arrays in Java
By Evelyn Hunter
High School
* Input/Output
* Java
java
File I/O in Java
By David Burnham
High School
Data Science
* Data Science
* Python
python
Pandas Series and Central Tendency
By Jennifer Campbell
High School
* Data Science
* Python
python
Measures of Spread
By Jennifer Campbell
High School
* Math
* Data Science
* Python
python
Math Module in Python
By Ryan Hart
High School
Web Design
* Web Design
* HTML
html
HTML Tables
By Jennifer Campbell
High School
Middle School
* Web Design
* HTML
html
HTML Colors
By Jennifer Campbell
High School
Middle School
* Web Design
* HTML
html
HTML Lists
By Jennifer Campbell
High School
Middle School
Math
* Math
Fly Me to the Moon
By David Burnham
High School
* Math
* Java
java
Java Documentation - Basics
By Zach Galant
High School
* Functions
* Math
* JavaScript
javascript
Randomization in JavaScript
By Ryan Hart
High School
Strings
* Strings
* Python
python
Indexing Python Strings
By Ryan Molyneaux
High School
* Strings
* Python
python
Slicing Python Strings
By Ryan Molyneaux
High School
* Strings
* Python
python
Python Strings
By Ryan Molyneaux
High School
Graphics
* Graphics
* JavaScript
javascript
Basic Graphics in JavaScript
By Ryan Hart
High School
* Graphics
* JavaScript
javascript
How to use the CodeHS JS Library on your Website
By Zach Galant
High School
Lists
* Lists
* Java
java
Arrays in Java
By Evelyn Hunter
High School
* Lists
* C++
c++
C++ Iterators
By David Burnham
High School
* Lists
* JavaScript
javascript
Arrays in JavaScript
By Rachel Devaney
High School
Input/Output
* Input/Output
* Java
java
File I/O in Java
By David Burnham
High School
* Input/Output
* C++
c++
Basic I/O in C++
By David Burnham
High School
* Input/Output
* C++
c++
File I/O in C++
By David Burnham
High School
Functions
* Functions
* Java
java
Basic Recursion
By David Burnham
High School
* Functions
* JavaScript
javascript
Default Parameters in JavaScript
By Ryan Hart
High School
* Functions
* Math
* JavaScript
javascript
Randomization in JavaScript
By Ryan Hart
High School
AP
* AP
* JavaScript
javascript
Sample A CSP Performance Task
By David Burnham
High School
* AP
* JavaScript
javascript
Sample B CSP Performance Task
By David Burnham
High School
* AP
* Python
python
Sample A CSP Performance Task
By David Burnham
High School
JavaScript
* JavaScript
javascript
JavaScript Modules
By Andy Bayer
* JavaScript
javascript
Seasonal Geometry Part Two
By Andy Bayer
* JavaScript
javascript
What's New in the CodeHS JavaScript Library?
By Andy Bayer
Python
* Getting Started
* Python
python
Python For Java Users
By David Burnham
High School
* Math
* Data Science
* Python
python
Math Module in Python
By Ryan Hart
High School
* Loops
* Python
python
Break and Continue in Python
By Rachel Devaney
High School
Loops
* Loops
* JavaScript
javascript
Break and Continue in JavaScript
By Rachel Devaney
High School
* Loops
* Lists
* JavaScript
javascript
Looping Through Arrays in JavaScript
By Rachel Devaney
High School
* Loops
* JavaScript
javascript
While Loops in JavaScript
By Rachel Devaney
High School
Crypto
* Crypto
What are NFTs?
By Jeremy Keeshin
High School
* Crypto
How to set up an Ethereum wallet on MetaMask
By Jeremy Keeshin
High School
* Cybersecurity
* Java
* Crypto
java
What is Blockchain
By David Burnham
High School
Dictionaries
* Cybersecurity
* Dictionaries
How Strong is Your Password?
By Jennifer Campbell
High School
Middle School
* Dictionaries
* Data Structures
* Python
python
Dictionaries in Python
By Rachel Devaney
High School
* Dictionaries
* Python
python
Comprehensions in Python
By Neel Kishnani
High School
HTML
* Web Design
* HTML
html
HTML Lists
By Jennifer Campbell
High School
Middle School
* Web Design
* HTML
html
HTML Tables
By Jennifer Campbell
High School
Middle School
* Web Design
* HTML
html
HTML Colors
By Jennifer Campbell
High School
Middle School
Variables
* Variables
* JavaScript
javascript
Variables in JavaScript
By Rachel Devaney
High School
* Variables
* Java
java
Variables in Java
By Evelyn Hunter
High School
* Variables
* Python
python
Lists in Python
By Evelyn Hunter
High School
View All Tutorials
Products
* All Products
* Coding LMS
* Online IDE
* CodeHS Pro
* CodeHS Free
* Computer Science Curriculum
* Certifications
* Professional Development
* AI Creator
* Typing
* Cyber Range
Plans
* CodeHS Pro
* Start for Free
* Get a Quote
Use Cases
* District
* Schools
* Teachers
* CTE
Platform
* Assignments
* Classroom Management
* Grading
* Data
* Write Code
* Integrations
* AI Tools
* Academic Integrity
Curriculum
* Course Catalog
* Project Catalog
* K-12 Pathways
* AP Courses
* Elementary
* State Courses
* Spanish Courses
* Standards
* Hour of Code
* Practice
* Tutorials
* Digital Textbooks
* AP CSA Hub
* AI Curriculum
* Digital Literacy Curriculum
PD
* Online PD Courses
* In-Person PD Workshops
* Virtual PD Workshops
* Free PD Workshops
* PD Cohorts
* Teacher Certification Prep
* Microcredentials
* PD Membership
Programming Languages
* New Sandbox Program
* Javascript
* Python
* Java
* HTML
* C++
* SQL
* Karel
Resources
* Why Computer Science
* Why Cybersecurity
* Why Learn AI
* Why Digital Literacy
* Back to School Checklist
* Case Studies
* States
* Testimonials
* Tweets
* CodeHS Blog
* Read Write Code Book
* Knowledge Base
* Webinars
* Student Projects
* Career Center
* Student Alumni
CodeHS Has Everything
* AI
* Grading
* Differentiation
* Elementary
* Assessments
* Academic Integrity
* Online IDE
* Physical Computing
* AP Courses
* Vibe Coding
* Yes
Company
* About
* Team
* Careers
* Privacy Center
* AI Center
* Terms
* Privacy Policy
* Security
* Accessibility
Products
* All Products
* Coding LMS
* Online IDE
* CodeHS Pro
* CodeHS Free
* Computer Science Curriculum
* Certifications
* Professional Development
* AI Creator
* Typing
* Cyber Range
Plans
* CodeHS Pro
* Start for Free
* Get a Quote
Platform
* Assignments
* Classroom
* Grading
* Data
* Write Code
* Integrations
* AI Tools
* Academic Integrity
PD
* Online PD Courses
* In-Person PD Workshops
* Virtual PD Workshops
* PD Cohorts
* Teacher Certification Prep
* Microcredentials
Resources
* Why Computer Science
* Why Cybersecurity
* Why Learn AI
* Why Digital Literacy
* Back to School Checklist
* Case Studies
* States
* Testimonials
* Tweets
* CodeHS Blog
* Read Write Code Book
* Knowledge Base
* Webinars
* Student Projects
* Career Center
* Student Alumni
Use Cases
* District
* Schools
* Teachers
* CTE
Curriculum
* Course Catalog
* Project Catalog
* AP Courses
* Elementary
* State Courses
* Spanish Courses
* Standards
* Practice
* Tutorials
* Digital Textbooks
* AP CSA Hub
Programming Languages
New Sandbox Program
* Javascript
* Python
* Java
* HTML
* C++
* SQL
* Karel
CodeHS Has Everything
* AI
* Grading
* Differentiation
* Elementary
* Assessments
* Academic Integrity
* Online IDE
* Physical Computing
* AP Courses
* Vibe Coding
* Yes
Company
* About
* Team
* Careers
* Privacy Center
* AI Center
* Terms
* Privacy Policy
* Security
* Accessibility
CodeHS Certified Educators
CodeHS Educator Facebook Group
CodeHS Store
Links found on this page
- Products [direct]
- CodeHop
Standards aligned coding for districts [direct]
- Tynker
Gamified coding and apps [direct]
- Typing
Easy to use typing for schools [direct]
- CodeHS Pro
Comprehensive CS platform [direct]
- Certifications
Industry based credentials for CTE [direct]
- Cyber Range
Interactive environment for cybersecurity labs [direct]
- AI Creator
Easily create lessons with AI [direct]
- Vibe Coding
Guided AI coding for students [direct]
- Bool
AI coding and prototyping [direct]
- Districts [direct]
- Schools [direct]
- Teachers [direct]
- View All Products [direct]
- Assignments
Create & configure your course assignments [direct]
- Classroom
Manage & organize your class [direct]
- Grading
Streamline your grading workflow [direct]
- Academic Integrity
Build a culture of honesty in your classroom [direct]
- QuizBuzz
Run gamified, interactive quizzes with your class [direct]
- Data
Track & analyze student progress data [direct]
- Write Code
Write, run, & debug code in a web-based IDE [direct]
- Integrations
Connect CodeHS to your district's platform [direct]
- AI Tools
The most complete AI toolkit in CS education [direct]
- LOGIC
Measure student growth with pre- & posttests [direct]
- Overview [direct]
- Course Catalog [direct]
- AP Courses [direct]
- AI Courses [direct]
- Interdisciplinary [direct]
- Spanish Courses [direct]
- AI Literacy [direct]
- Digital Literacy [direct]
- Cybersecurity [direct]
- K-12 Pathways [direct]
- Elementary School [direct]
- Middle School [direct]
- High School [direct]
- Standards [direct]
- States [direct]
- Supplemental [direct]
- Digital Textbooks [direct]
- K-12 Pathways [direct]
- Standards [direct]
- Tutorials [direct]
- Overview [direct]
- Online PD Courses [direct]
- In-Person & Virtual Workshops [direct]
- AI PD [direct]
- Free PD Events [direct]
- PD Cohorts [direct]
- Teacher Certification Prep [direct]
- Microcredentials [direct]
- PD Membership [direct]
- JavaScript [direct]
- Python [direct]
- Java [direct]
- C++ [direct]
- SQL [direct]
- HTML [direct]
- Tracy [direct]
- Blocks [direct]
- p5.js [direct]
- Karel [direct]
- About
Learn about the CodeHS mission [direct]
- Privacy Center
Our privacy & security practices [direct]
- Case Studies
How schools succeed with CodeHS [direct]
- Testimonials
What educators say about CodeHS [direct]
- Read Write Code Blog
News & stories from CodeHS [direct]
- Coding in the Wild
Real world coding stories [direct]
- CodeHS on X
Posts & highlights from our feed [direct]
- Student Projects
Explore projects built by students [direct]
- Knowledge Base
Help articles & how-tos [direct]
- Career Center
Explore careers in tech [direct]
- Request a Quote [direct]
- Log In [direct]
- Sign Up [direct]
- Java [direct]
- JavaScript [direct]
- Python 3 [direct]
- HTML [direct]
|
|