Write Python that resists attack. This course teaches the secure way to do the things real Python apps do: handle untrusted input, build database queries and shell commands, render templates, hash passwords and manage secrets, work with files and serialized data, call other services, and build web endpoints in Flask and Django. Every lesson contrasts the dangerous pattern with the safe one and has a 'fix this code' exercise, so you learn the habits that prevent injection, insecure deserialization, SSRF, path traversal, weak crypto and secret leakage before they ship. Covers the security-relevant parts of the standard library and the go-to libraries (secrets, hashlib, the cryptography and passlib packages, PyYAML, requests), plus the tools that catch mistakes (bandit, pip-audit, Semgrep). For Python developers of any level who want to build securely; pairs with Secure Code Review and Web Application Security Fundamentals.