Skip to content
Python & DataFree

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 leave with

You finish able to read unfamiliar Python, break a problem into functions, and write small programs that handle real input safely.

Modules
6
Duration
~13 hours
Level
Beginner to Intermediate
Access
Free course
  • In-browser Python execution
  • Interactive animations
  • Complete OOP & File I/O

What you will be able to do

What this course prepares you to do.

The curriculum is organized around these 4 practical outcomes.

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

Curriculum

Every module earns the next one.

Open a module to inspect every section before you start. Your progress follows you through the course.

01
Module 1

Core Syntax - The Building Blocks

BeginnerFree

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

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

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

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

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

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.

Start with the background you have. The prerequisite notes above tell you exactly what is assumed.

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.

Module 1 introduces 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