Python Crash Course

Based on Python Crash Course, 3rd Edition by Eric Matthes. Adapted for infrastructure engineers with CLI-first learning.

Course Structure

Part Focus Chapters

I: Basics

Core Python - types, structures, functions, classes, files, testing

1-11

II: Projects

Alien Invasion (pygame), Data Visualization (matplotlib), Web Apps (Django)

12-20

Part I: Fundamentals

Ch Topic

01

Environment, REPL, first script

02

Variables, strings, numbers, comments

03

Lists, indexing, modifying, organizing

04

Looping, slices, tuples

05

Conditionals, boolean expressions

06

Key-value pairs, nesting

07

User input, while loops

08

Defining functions, arguments, modules

09

OOP, inheritance, composition

10

File I/O, error handling, JSON

11

pytest, fixtures, assertions

Environment

Minimum: Python 3.10+

python3 --version

This course uses neovim/vim with LSP. No IDE required.

Philosophy

Infrastructure examples throughout: servers, IPs, ports, configs - not generic dogs and pizzas.

Simple is better than complex. Readability counts.

— The Zen of Python
>>> import this