Skip to content
Data foundationsFree

Learn to read, reason about, and write Python.

Python Fundamentals

Start with values and control flow, then build confidence with data structures, functions, error handling, files, and object-oriented programming.

What you will be able to do

Leave with capability, not just vocabulary.

Trace variables, expressions, conditions, and loops

Choose the right built-in data structure

Write reusable functions with clear inputs and outputs

Handle errors, files, and objects without losing the program flow

Running example

Small data-oriented programs that reuse clear names and grow from single values into complete workflows.

Prerequisites

None. No programming experience is assumed.

Curriculum

Every module earns the next one.

Open any module to review its exact sections. Progress and completion follow you through the course.

6 modules · ~13 hours
01
Module 1

Core Syntax - The Building Blocks

BeginnerFree

Topics include Why Python for Data Science, Variables & Assignment, Data Types (int, float, str, bool), and more.

View 5 sections
  1. 1Why Python & Getting Started
  2. 2Variables - Labeled Boxes for Data
  3. 3Data Types - The Four Essentials
  4. 4Operators - Making Python Calculate
  5. 5Comments & Code Style
95 min5 sections
Open module
02
Module 2

Control Flow - Making Decisions

BeginnerFree

Topics include Boolean Logic & Comparisons, if/elif/else Statements, for Loops, and more.

View 5 sections
  1. 1Boolean Logic & Comparisons
  2. 2if/elif/else - Making Decisions
  3. 3for Loops - Iterating Over Data
  4. 4while Loops - Condition-Based Repetition
  5. 5Loop Control: break, continue, pass
100 min5 sections
Open module
03
Module 3

Data Structures - Organizing Information

BeginnerFree

Topics include Lists - Ordered Collections, Tuples - Immutable Sequences, Dictionaries - Key-Value Pairs, and more.

View 5 sections
  1. 1Lists - Ordered, Mutable Collections
  2. 2Tuples - Immutable Sequences
  3. 3Dictionaries - Key-Value Lookup
  4. 4Sets - Unique Elements
  5. 5List Comprehensions - Pythonic Shortcuts
155 min5 sections
Open module
04
Module 4

Functions - Reusable Code Blocks

IntermediateFree

Topics include Defining Functions, Parameters & Arguments, Return Values, and more.

View 9 sections
  1. 1Defining Functions - The Basics
  2. 2Parameters & Arguments
  3. 3Return Values
  4. 4Scope & Namespaces
  5. 5Lambda & Higher-Order Functions
  6. 6Recursion
  7. 7Docstrings & Type Hints
  8. 8Closures
  9. 9Decorators
150 min9 sections
Open module
05
Module 5

Error Handling & File I/O

IntermediateFree

Topics include Exceptions & Error Types, try/except/finally, Raising Exceptions, and more.

View 7 sections
  1. 1Why Errors Happen - Exception Types
  2. 2try/except - Catching Errors Gracefully
  3. 3finally & else - Cleanup & Success Paths
  4. 4Raising Exceptions - Failing on Purpose
  5. 5Reading & Writing Text Files
  6. 6Working with CSV Data
  7. 7JSON - The Universal Data Format
105 min7 sections
Open module
06
Module 6

Object-Oriented Programming

IntermediateFree

Topics include Classes & Objects, __init__ & self, Attributes & Methods, and more.

View 12 sections
  1. 1Why OOP? - The Blueprint Metaphor
  2. 2Classes & Objects - Creating Blueprints
  3. 3__init__ & self - Initialization
  4. 4Methods - Functions Inside Classes
  5. 5Inheritance - Building on Existing Classes
  6. 6Encapsulation & Properties
  7. 7Magic Methods - Python's Secret Protocols
  8. 8Polymorphism - Same Interface, Different Behavior
  9. 9Multiple Inheritance & MRO
  10. 10Abstract Base Classes (ABCs)
  11. 11Dataclasses - Less Boilerplate
  12. 12When to Use OOP vs Functions
175 min12 sections
Open module
Who this course is for

Built for people who need to use the skill.

01

Complete programming beginners

02

Analysts adding Python to their toolkit

03

AI-assisted coders who want to validate generated code

Start the course

Begin with Core Syntax - The Building Blocks.

The first module establishes the language and example used throughout the rest of the course.

Open Module 1
Python Fundamentals for Data Science | Let's Data Science | Let's Data Science