Python Fundamentals
A public fundamentals course with one lesson for each core syntax topic.
Log in as an instructor to copy this template into your courses.
Template Lessons
1: Syntax and Indentation Rules
Python uses indentation to define blocks. Missing colons or inconsistent spaces cause immediate errors.
2: Printing Output
print() helps you inspect values and explain what your program is doing.
3: Comments and Readable Layout
Readable code is easier to debug and maintain. Comments explain why code exists, not obvious steps.
Variable Naming and Reassignment
Template lesson for this syntax concept.
Core Types: int, float, str, bool, None
Template lesson for this syntax concept.
Mutable vs Immutable (Beginner View)
Template lesson for this syntax concept.
Type Conversion and Safe Input
Template lesson for this syntax concept.
User Input
Template lesson for this syntax concept.
Arithmetic Operators
Template lesson for this syntax concept.
Comparison and Logical Operators
Template lesson for this syntax concept.
Membership and Identity
Template lesson for this syntax concept.
Augmented Assignment
Template lesson for this syntax concept.
Conditionals (if / elif / else)
Template lesson for this syntax concept.
Nested Conditionals
Template lesson for this syntax concept.
Short Conditional Expression (Ternary)
Template lesson for this syntax concept.
For Loops with range() Patterns
Template lesson for this syntax concept.
For Loops over Strings, Lists, and Dicts
Template lesson for this syntax concept.
While Loops and Counters
Template lesson for this syntax concept.
break, continue, and pass
Template lesson for this syntax concept.
Nested Loops
Template lesson for this syntax concept.
Loop else (Intro)
Template lesson for this syntax concept.
Functions: Parameters and Return Values
Template lesson for this syntax concept.
Function Scope Basics
Template lesson for this syntax concept.
Lists
Template lesson for this syntax concept.
Strings
Template lesson for this syntax concept.
Dictionaries and Tuples
Template lesson for this syntax concept.
Imports and Module Usage
Template lesson for this syntax concept.
Truthiness and Short-Circuit Logic
Template lesson for this syntax concept.
List Comprehensions (Map and Filter)
Template lesson for this syntax concept.
any(), all(), and Generator Checks
Template lesson for this syntax concept.
min() / max() and Clamping Values
Template lesson for this syntax concept.
enumerate() for Indexed Loops
Template lesson for this syntax concept.
Tuple Unpacking and Multiple Assignment
Template lesson for this syntax concept.
Dictionary .get() and Safe Defaults
Template lesson for this syntax concept.
Classes and Objects (Beginner Intro)
Template lesson for this syntax concept.
Turtle Basics (Drawing with Python)
Template lesson for this syntax concept.
Sets (Unique Values)
Template lesson for this syntax concept.
Debugging Habits and Common Errors
Template lesson for this syntax concept.