Beginner
Free
18 hours
Python Fundamentals for Engineers
Learn Python from first principles and build a tested automation tool
Learn Python through the mental models that make real programs predictable: names bound to objects, mutable and immutable data, readable control flow, deliberate collection choices, clear function contracts, safe file handling, modules, classes, testing, and secure input boundaries. The course is command-line first and ends with a complete log-reporting CLI built as an installable, tested project.
What you will learn
Leave with a working mental model.
- 01 Explain Python's names-and-objects model and choose appropriate built-in types
- 02 Write readable decisions, loops, functions, and collection transformations
- 03 Handle text, bytes, files, errors, and external input safely
- 04 Organize code into modules, packages, classes, and dataclasses
- 05 Add type hints, logging, and automated tests to a small project
- 06 Build a tested command-line log reporting tool from scratch
Before you begin
Prerequisites
- Comfort using a computer and editing text files
- Basic command-line familiarity is helpful but not required
- No previous programming experience is required
Curriculum
Course contents
7 modules · 28 lessons
01 Module 1: Python Mindset and Workspace 4 lessons
- 01 What Python Is and When It Fits Preview
- 02 Build an Isolated Python Workspace
- 03 Names, Objects, and Built-in Types
- 04 Operators, Input, and Truthiness
02 Module 2: Control Flow and Reliable Text 4 lessons
- 01 Readable Decisions and Loops Preview
- 02 Strings, Slices, and Formatting
- 03 Unicode Text and Bytes
- 04 Lab: Build a Text Record Normalizer
03 Module 3: Collections and Data Transformations 4 lessons
- 01 Lists and Tuples: Ordered Data
- 02 Sets and Dictionaries: Uniqueness and Lookup Preview
- 03 Comprehensions, enumerate, and zip
- 04 Lab: Build an Inventory Report
04 Module 4: Functions, Scope, and Contracts 4 lessons
- 01 Functions as Clear Interfaces Preview
- 02 Scope, Namespaces, and Shared Mutation
- 03 Exceptions as Failure Contracts
- 04 Type Hints for Everyday Contracts
05 Module 5: Files, Modules, and Objects 4 lessons
- 01 Files and Context Managers Preview
- 02 Modules, Packages, and Script Entry Points
- 03 Classes and Object Responsibilities
- 04 Dataclasses for Structured Records
06 Module 6: Testing, Debugging, and Safe Boundaries 4 lessons
- 01 Testing Behavior with pytest Preview
- 02 Tracebacks, Debuggers, and Logging
- 03 Standard Library Tools for CLI Automation
- 04 Secure Input, Paths, Subprocesses, and Secrets
07 Module 7: Capstone: A Tested Log Reporting CLI 4 lessons
- 01 Capstone Architecture and Project Skeleton Preview
- 02 Implement Parsing and Aggregation
- 03 Complete the CLI, Tests, and Quality Gates
- 04 Package, Document, and Review the Capstone