Please enable JavaScript to use CodeHS

Intro to Computer Science in Python

The CodeHS introduction to Python course teaches the fundamentals of computer programming as well as some advanced features of the Python language. Students use what they learn in this course to build simple console-based games. This course is equivalent to a semester-long introductory Python course at the college level.


The entirely web-based curriculum is made up of a series of learning modules that cover the fundamentals of programming. Each module is made up of short video tutorials, example programs, quizzes, programming exercises, challenge problems, and unit tests. The course is designed for a year long class that meets 5 days per week, though schools implement it in a variety of ways.

Who is it for?

This course does not assume any prior programming experience. Learn the basics of programming, and then gradually harness the power of some of Python's more advanced features to make games and solve real-world problems.

Students can take this course as their first introduction to computer science or as a secondary introductory course that explores a new language, after our Introduction to Computer Science in JavaScript.

What do you Learn?

In this course, students learn the fundamental concepts of programming - concepts that can be applied in the study of any programming language. Students also dive into specific features of the Python programming language. Below is a summary of the material covered in each module:

Module Description
Welcome:Welcome to Intro to CS in Python! Check out our introductory video to get a sense of what this course is about, and reflect on what you hope to get out of it.
Introduction to Programming with Turtle Graphics:Learn Python commands, functions, and control structures by drawing shapes on your screen and solving puzzles with Turtle Graphics!
Basic Python and Console Interaction:Learn the basics of programming by writing programs that you can interact with using your keyboard!
Conditionals:Teach your program to make decisions based on the information it receives.
Looping:Learn how to write more efficient code by using control structures as shortcuts.
Functions and Exceptions:Learn how to decompose your program into smaller pieces that work together to solve a problem!
Strings:Learn more sophisticated strategies for manipulating text in your programs - slicing, concatenating, and formatting.
Creating and Altering Data Structures:Learn how tuples and lists are formed and the various methods that can alter them.
Extending Data Structures:Build more complex programs that make use of grids and dictionaries.
Project: Hangman:Use the skills you’ve learned in the first four modules to build the game Hangman.
Classes and Objects:Learn the principles of object-oriented design.
Project: Who Said it?:Combine all the skills you’ve learned to create a program that reads a portion of text and chooses the author between two options.

Demos and Tools

Students will build creative graphics programs with Tracy the Turtle.

Students will learn to create text based games in Python like Hangman. Here is a sample of a running hangman program. You can try it out yourself here

Students receive instant feedback on their code from our autograders. Here is an example of an autograded program that finds the sum of a list of numbers.

Course Flavors

On our Pro plans, we have different Course Flavors available. Course Flavors means that you get exactly the right version of our course for your school, classroom, and students.

Here are our Course Flavors for Intro Python:

Course Flavor Description
Intro to Computer Science in Python (Rainforest) This is the main introduction course to computer science in the python 2 language. This is the standard course flavor for our Intro to CS in Python.
Intro to Computer Science in Python (Savanna) This is the introduction course to computer science in the python 2 language without the turtle graphics introduction.
Intro to Computer Science in Python 3 (Rainforest) This is the main introduction course to computer science in the python 3 language. This is the standard course flavor for our Intro to CS in Python, offered in the latest python languag

To find out the right Course Flavor for your class contact your Account Manager or contact us at


Take a look at our syllabus for teaching Intro to Computer Science in Python with CodeHS.

View Syllabus


Interested in teaching the Intro to Computer Science in Python course with CodeHS? Get in touch, so we can help you bring CodeHS to your school!

Bring to My School Try the demo
Download the Course Overview