Week 1 - Python Foundations


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

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 Gotchas & Pitfalls

Week 1 Assignment: The Data Cleaning Pipeline

Week 1 Glossary

Going Further: Optional Deep Dives

Week 1 Kickoff Slides

week_1__presentation.pdf

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


Chapters

  1. Python Setup
  2. Data Types and Variables
  3. Control Flow
  4. Functions and Modules
  5. Type Hints for Clearer Code
  6. Command-Line Interface Habits
  7. Errors and Debugging
  8. Logging in Python
  9. File Operations
  10. Azure Setup and Account Access
  11. Practice
  12. Gotchas and Pitfalls
  13. Assignment

Supplementary