Introduction to Python
Free Online Course • Self Paced Learning • No Prerequisites
Welcome to Python!
This comprehensive course is designed to take you from complete beginner to confident Python programmer. Each module includes step by step lessons, hands on practice problems, self check quizzes, and quick reference guides.
Self Paced
Learn on your schedule. All materials available 24/7.
Hands On
Every lesson includes code examples you can try on your own computer.
Comprehensive
Study guides, quick reference cards, and worked examples.
Beginner Friendly
No prior programming experience required. We start from zero.
Course Modules
What is Python & Getting Started
Learn what Python is, install it on your computer, and write your first program.
- What is Python and why learn it
- Installing Python on your computer
- Your first Python program
- Using the Python interpreter
Variables & Data Types
Understand how Python stores and works with different kinds of data.
- Variables and assignment
- Numbers: integers and floats
- Strings basics
- Booleans and type conversion
Input, Output & String Formatting
Learn to interact with users and format output beautifully.
- The print() function and formatting
- Getting user input with input()
- f strings and .format()
- String concatenation and repetition
Conditionals
Make your programs smart with decision making using if statements.
- Comparison operators
- if, elif, and else statements
- Logical operators (and, or, not)
- Nested conditionals
Loops
Automate repetitive tasks with for loops and while loops.
- for loops and range()
- while loops
- break, continue, and pass
- Nested loops
Lists
Store and manipulate collections of data using Python lists.
- Creating and accessing lists
- List methods (append, insert, remove, sort)
- Slicing and indexing
- List comprehensions
Strings in Depth
Master string manipulation with powerful built in methods.
- String methods (upper, lower, split, join)
- String slicing
- Searching and replacing
- Common string patterns
Dictionaries & Tuples
Learn key value data storage and immutable sequences.
- Creating and using dictionaries
- Dictionary methods
- Tuples and immutability
- When to use each data structure
Functions
Organize your code into reusable blocks with functions.
- Defining functions with def
- Parameters and return values
- Default and keyword arguments
- Scope (local vs global)
Modules & Imports
Leverage Python's powerful standard library and organize your projects.
- Using built in modules (math, random, datetime)
- import vs from...import
- Installing packages with pip
- Organizing your code
File Handling
Read from and write to files to work with real world data.
- Reading files
- Writing files
- The with statement
- Working with CSV data
Error Handling & Next Steps
Handle errors gracefully and discover where to go next with Python.
- Common Python errors
- try/except/finally
- Debugging strategies
- Where to go next
Ready to Get Started?
Begin with Module 1 and work your way through, or jump to any module that interests you. All materials are completely free!
Learning Tips
- Type the code yourself: don't just read it, actually run it on your computer
- Work through all lessons in order for best understanding
- Practice, practice, practice! Do all practice problems before the quiz
- Use the quick reference cards when you need a reminder
- Experiment! Change the code examples and see what happens