Week 1 - Foundational Python


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

CC BY-NC-SA 4.0 Icons

*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

First lesson: Python Setup