Computer Science
Learn to code in Python, Java, C++, HTML, and CSS — beginner to advanced, no grade level.
Python from the first print statement to classes and algorithms — 54 skills, beginner to advanced.
Start here: first words and core ideas.
Printing Text
Print text to the screen.
Comments
Write comments that the computer ignores.
Variables
Store values in variables.
Text Values
Create and use text values.
Arithmetic
Add, subtract, multiply, and divide.
Comparing Values
Compare values with true and false results.
If Statements
Run code only when a condition is true.
Else and Else If
Choose between several paths.
And / Or Logic
Combine conditions with and / or.
For Loops
Repeat work a set number of times.
While Loops
Repeat work until a condition changes.
Break and Continue
Stop or skip inside a loop.
Functions
Define a function you can call.
Returning Values
Send a value back from a function.
Lists and Arrays
Store several values in one place.
Adding to a List
Add items to a list.
Length and Size
Find how many items a collection holds.
Dictionaries and Maps
Look up values by key.
Build confidence with the basics in place.
String Methods
Change and inspect text.
Classes
Define your own type with a class.
Constructors
Set up a new object when it is created.
Inheritance
Build a class on top of another class.
Try and Catch
Handle errors without crashing.
Raising Errors
Raise an error on purpose.
Imports and Libraries
Use code from another module.
Reading Files
Open and read a file.
Reading Input
Read what the user types.
Converting Types
Turn text into numbers and back.
Sorting Lists
Put a list in order.
Recursion
Write a function that calls itself.
Conditions and Logic
Build decisions from several conditions.
Loops in Practice
Choose the right loop and control it.
Functions in Practice
Write functions that do useful work.
Collections in Practice
Store, add, count, and sort values.
Text in Practice
Build and print text.
Objects and Classes
Model data with classes.
Handle real projects and harder ideas.
Errors in Practice
Handle and raise errors deliberately.
Input and Output
Read input and print a result.
Files and Imports
Load libraries and read files.
Numbers in Practice
Work with numbers safely.
Program Structure
Organize a program well.
Sorting and Recursion
Solve problems with sorting and recursion.
Debugging Basics
Find and fix mistakes.
Text and Lists
Work with text inside collections.
Dictionaries in Practice
Use maps to organize data.
Boolean Logic in Depth
Reason about true and false.
Loops and Collections
Loop through collections.
Functions and Collections
Pass collections to functions.
Classes in Practice
Build and protect your own types.
Reading and Converting Input
Turn user input into useful values.
Building Small Programs
Combine the basics into a program.
Review: Core Syntax
Review the core of the language.
Review: Working with Data
Review how data is stored and changed.
Review: Everything
Mixed review of the whole language.