Learn Python
Learn Python online through our comprehensive course. Learn Python from the fundamentals to practical programming concepts.
Curriculum
01Python Fundamentals
Introduction to Python
Discover what Python is, why it's so popular, and what you can build with it.
Installing and Running Python
Learn how to get Python set up on your machine and run your first script.
Python Syntax
Understand Python's unique indentation-based syntax and structure.
Comments
Learn how to write notes in your code that Python ignores.
Variables
Learn how to store data values in variables.
Data Types
Explore the built-in data types Python provides.
Type Conversion
Learn how to convert data from one type to another.
Input and Output
Learn how to get input from the user and print output to the console.
Operators
Perform mathematical and logical operations.
Strings
Master text manipulation with Python's string features.
02Control Flow
Conditional Statements
Learn how to make decisions in your code.
if, elif and else
Handle multiple conditions and fallback scenarios.
Comparison & Logical Operators
Combine and compare multiple conditions.
while Loops
Repeat code as long as a condition is true.
for Loops
Iterate over a sequence of items.
range()
Generate sequences of numbers for looping.
break and continue
Control the flow of your loops.
Nested Loops
Put loops inside other loops.
03Data Structures
Lists
Store multiple items in a single variable.
Tuples
Store unchangeable sequences of data.
Sets
Store unordered, unique items.
Dictionaries
Store data in key-value pairs.
List Methods
Common built-in methods for manipulating lists.
Dictionary Methods
Common built-in methods for manipulating dictionaries.
Nested Data Structures
Lists inside dictionaries, dictionaries inside lists.
04Functions
Functions
Create reusable blocks of code.
Parameters and Arguments
Pass data into your functions.
Return Values
Output data from a function back to the caller.
Default and Keyword Arguments
Make function calls more flexible.
Scope
Understand where variables can be accessed.
Lambda Functions
Create small, anonymous functions.
05Intermediate Python
Modules and Imports
Organize code into multiple files and use built-in libraries.
Exceptions and Error Handling
Prevent your programs from crashing when things go wrong.
File Handling
Read from and write to files on your computer.
Object-Oriented Programming Basics
Understand the core concepts of OOP in Python.
Classes and Objects
Dive deeper into constructors and methods.
Inheritance
Create classes that inherit properties from other classes.
Iterators and Generators
Handle massive amounts of data efficiently.
Decorators
Modify the behavior of functions.
Virtual Environments and Packages
Manage dependencies for your projects.
Explore the Python Ecosystem
Continue learning Python
Access all Python lessons and tutorials.
Practice Python exercises
Apply your knowledge with interactive coding challenges.
Test your knowledge with Python quizzes
Check your understanding with multiple-choice questions.
Build Python projects
Create real-world applications from scratch.
Try Python in the playground
Write and execute Python code instantly in your browser.
Browse the Python reference
Quickly look up syntax, methods, and properties.