🐍Pro

Python Fundamentals: From Zero to Programmer

Learn Python from scratch. 10 modules covering variables, control flow, functions, data structures, OOP, and real projects — all with hands-on exercises.

10 modules 70 lessons ~18h AI voice coach
Start Learning — Pro

7-day free Pro trial included

Course Outline

1

Getting Started with Python

6 lessons

Install Python, understand the interpreter, write your first program, and learn how Python code executes.

What is Python and Why Learn It?
Installing Python and Setting Up Your Environment
The Python REPL and Running Scripts
Your First Python Program
How Python Executes Code
Checkpoint: Environment and First Steps
2

Variables, Data Types & Operators

7 lessons

Master Python's core data types — integers, floats, strings, booleans — and how to store, name, and operate on values.

Variables and Assignment
Numbers: int, float, and complex
Strings: Creating and Basic Operations
Booleans and None
Type Conversion and the type() Function
Reading User Input with input()
Checkpoint: Variables and Types Practice
3

String Manipulation in Depth

6 lessons

Explore Python's powerful string operations: indexing, slicing, formatting, and the most useful built-in string methods.

String Indexing and Slicing
Essential String Methods
String Formatting: f-strings and format()
String Immutability and Memory
Multiline Strings and Raw Strings
Checkpoint: String Processing Exercises
4

Control Flow: Conditionals and Loops

7 lessons

Control how your program makes decisions and repeats actions using if/elif/else, for loops, while loops, and loop control statements.

if, elif, and else Statements
Ternary Expressions and match/case
for Loops and range()
while Loops
break, continue, and pass
else Clauses on Loops
Checkpoint: Control Flow Challenges
5

Functions: Reusable, Testable Code

7 lessons

Define and call functions, master Python's flexible argument system (positional, keyword, *args, **kwargs), understand scope, and write clean docstrings.

Defining and Calling Functions
Parameters: Positional, Keyword, and Defaults
*args and **kwargs
Scope, LEGB Rule, and global/nonlocal
Lambda Functions
Docstrings and Type Hints
Checkpoint: Functions Practice Set
6

Data Structures: Lists, Tuples, Sets & Dicts

8 lessons

Master Python's four built-in collection types, learn when to use each, and write idiomatic comprehensions for concise data transformation.

Lists: Ordered, Mutable Sequences
Tuples: Immutable Sequences
Dictionaries: Key-Value Mapping
Sets: Unordered Unique Collections
List, Dict, and Set Comprehensions
Nested Data Structures
The collections Module: Counter, defaultdict, deque
Checkpoint: Data Structure Challenges
7

Error Handling and File I/O

7 lessons

Write robust programs that handle unexpected situations gracefully using try/except, and read and write files on disk.

Understanding Exceptions and the Exception Hierarchy
try, except, else, and finally
Raising and Creating Custom Exceptions
Reading Files with open() and with
Writing and Appending to Files
Working with JSON: json.load() and json.dump()
Checkpoint: Robust File Processor
8

Object-Oriented Programming with Python

8 lessons

Design programs around classes and objects. Learn encapsulation, inheritance, polymorphism, and Python's special dunder methods.

Classes and Objects: The Blueprint Metaphor
Instance Methods, Class Methods, and Static Methods
Encapsulation: Public, Protected, and Private
Inheritance and Method Overriding
Polymorphism and Duck Typing
Magic (Dunder) Methods: __str__, __repr__, __len__, __eq__
Dataclasses for Cleaner Models
Checkpoint: Build a Library Book System
9

Modules, Packages & the Standard Library

7 lessons

Organize code across multiple files, create reusable packages, and leverage Python's rich standard library for everyday tasks.

The import System: Modules and Namespaces
Creating Your Own Modules and Packages
File System Operations: os and pathlib
Dates and Times with datetime
math and random Modules
Virtual Environments and pip
Checkpoint: Build a CLI Utility with argparse
10

Pythonic Code and Best Practices

7 lessons

Write code that is idiomatic, readable, and efficient. Cover generators, decorators, itertools, PEP 8, and testing fundamentals.

PEP 8: Python Style Guide
Generators and yield
Decorators: Functions that Wrap Functions
itertools and functools Essentials
Context Managers and the with Statement
Unit Testing with pytest
Capstone: Build a Contact Book CLI App