Week 1 - Foundational Python
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

*https://hackyourfuture.net/*
Found a mistake or have a suggestion? Let us know in the feedback form.
Python Setup
Data Types and Variables
Control Flow: Logic and Loops
Functions and Modules
Type Hints for Clearer Code
Command-Line Interface Habits
Errors and Debugging
Logging in Python
File Operations
Azure Setup and Account Access
Practice
Week 1 Assignment: The Data Cleaning Pipeline
Week 1 Gotchas & Pitfalls
Lesson Plan
Week 1 - Python Foundations
Welcome to the Data Track! This first week lays the foundation for building reliable data pipelines with Python. You'll learn how to write well-structured Python code with proper typing, handle errors gracefully, implement logging for observability, and work with common data formats like CSV and JSON.
By the end of this week, you'll have built your first mini data pipeline that reads a CSV file and outputs clean JSON data - the fundamental pattern you'll use throughout the track.
Learning goals
- Set up a Python 3.11 development environment with virtual environments and VS Code
- Write functions with type hints and organize code into reusable modules
- Run Python scripts from the command line with arguments
- Read and understand Python error messages and stack traces
- Use the
logging module to add observability to your scripts
- Read CSV files and write JSON output using Python's standard library
- Use an LLM to help debug Python errors
- Log into your Azure account and understand which services you'll use later
First lesson: Python Setup