Learn to program in Python, a powerful language used by sites like YouTube and Dropbox.
UNIT 1: PYTHON SYNTAX
Lesson: Python Syntax
This lesson will introduce you to Python, a general-purpose, object-oriented interpreted language you can use for countless standalone projects or scripting applications.
Lesson: Tip Calculator
Now that you’ve completed the lesson on Python syntax, let’s see if you can put your newfound skills to use. In this lesson, you’ll create a simple calculator that determines the price of a meal after tax and tip.
Quiz: Python Syntax
Try this Codecademy Pro Quiz free!
UNIT 2: STRINGS AND CONSOLE OUTPUT
Lesson: Strings & Console Output
This lesson will introduce you to strings and console output in Python, including creating string literals, calling a variety of string methods, and using the “print” keyword.
Lesson: Date and Time
This lesson is a follow up to Unit 2: Strings and Console input and will give you practice with the concepts introduced in that lesson.
Quiz: Strings and Console Output
Project: Python Mad Libs
Write a creative story with input from the user!
UNIT 3: CONDITIONALS AND CONTROL FLOW
Lesson: Conditionals & Control Flow
In this lesson, we’ll learn how to create programs that generate different outcomes based on user input!
In this lesson we’ll put together all of the Python skills we’ve learned so far including string manipulation and branching. We’ll be building a Pyg Latin translator. (That’s Pig Latin for Python Programmers!)
Quiz: Conditionals and Control Flow
Project: Area Calculator
Build an interactive calculator that can determine the area of different shapes.
UNIT 4: FUNCTIONS
A function is a reusable section of code written to perform a specific task in a program. We gave you a taste of functions in Unit 3; here, you’ll learn how to create your own.
Lesson: Taking a Vacation
Hard day at work? Rough day at school? Take a load off with a programming vacation!
Project: Number Guess
Build a number guessing game that pits the user versus the computer!
UNIT 5: LISTS & DICTIONARIES
Lesson: Python Lists and Dictionaries
Lists and dictionaries are powerful tools you can use to store, organize, and manipulate all kinds of information.
Lesson: A Day at the Supermarket
Let’s manage our own supermarket and buy some goods along the way!
Quiz: Lists and Dictionaries
Project: Rock, Paper, Scissors
Build Rock, Paper, Scissors and play against the computer!
UNIT 6: STUDENT BECOMES THE TEACHER
Lesson: Student Becomes the Teacher
Use what you’ve learned so far to manage your own class.
UNIT 7: LISTS AND FUNCTIONS
Lesson: Lists and Functions
Now that you’ve learned about lists, let’s turbo-charge them with functions.
In this lesson, we will make a simplified version of the classic board game Battleship! We’ll use functions, lists, and conditionals to make our game.
Quiz: Lists and Functions
UNIT 8: LOOPS
Loops allow you to quickly iterate over information in Python. In this lesson, we’ll cover two types of loop: ‘while’ and ‘for’.
Lesson: Practice Makes Perfect
You know a lot of Python now. Let’s do some practice problems!
Project: Command Line Calendar
Build a functional calendar that can be accessed via command line.
UNIT 9: EXAM STATISTICS
Lesson: Exam Statistics
Your students just took their first test. It’s time to see how everyone did. Let’s write a program to compute the mean, variance, and standard deviation of the test scores.
UNIT 10: ADVANCED TOPICS IN PYTHON
Lesson: Advanced Topics in Python
In this lesson, we’ll cover some of the more complex aspects of Python, including iterating over data structures, list comprehensions, list slicing, and lambda expressions.
Lesson: Introduction to Bitwise Operators
Bitwise operations directly manipulate bits—patterns of 0s and 1s. Though they can be tricky to learn at first, their speed makes them a useful addition to any programmer’s toolbox.
Project: RGB-HEX Converter
Build a program that can convert back and forth between RGB values and Hexadecimal values.
UNIT 11: INTRODUCTION TO CLASSES
Lesson: Introduction to Classes
Classes are a crucial part of object-oriented programming (OOP). In this lesson, we’ll explain what classes are, why they’re important, and how to use them effectively.
Make your own Car and learn how to driveCar()!
Quiz: Introduction to Classes
Project: Bank Account
Create a class that manipulates instances of bank accounts.
UNIT 12: FILE INPUT AND OUTPUT
Lesson: File Input/Output
Now that you understand Python syntax and have been introduced to some Python best practices, let’s apply what you’ve learned to a real-world application: writing data to a file.
Quiz: File Input and Output
Project: DNA Analysis
Use Python to solve a DNA mystery.
In this project, you will leave Codecademy’s learning environment to set up a development environment on your own computer. You will be able to apply your Python knowledge to build an application, test it, and run it. Be creative and show us what you come up with!
UPGRADE TO CODECADEMY PRO