All courses

Python for security automation

The scripts between your tools are infrastructure too. This is Python built for automation: running commands safely with subprocess, handling files and paths, regex and structured data (JSON, YAML, CSV), calling APIs, error handling with retries, small CLIs, log parsing that scales, secrets and hashing, then dependency hygiene, packaging, and testing so what you write is safe to ship. Fourteen lessons, each with runnable code, expected output, and a self-check.

Intermediate4 sections · 14 lessons · ~4.5h total · 12-question self-test

Progress is saved in this browser only — no account required.

Final exam
Test yourself on everything
12 questions drawn from all 2 sections — every answer explained as you pick.
Start final exam