Python tutorials and worked examples

Write reliable Python for data and AI: functions, collections, files, debugging and complete small projects.

Files and structured input

Read records incrementally and validate input contracts.

Debugging and exceptions

Trace failures to their causes and verify repairs.

Python environments

Select interpreters and reproduce project dependencies.

Collections and copying

Reason about references, mutation and the structure of your data.

Functions and arguments

Understand calls, defaults and the state a function retains.

Python projects

Combine language fundamentals into complete, testable programs.

Learning Python for AI

Choose the foundations needed for numerical and modeling work.