This repository contains my Python modules for Milestone 2 of the 42 School Common Core.
These modules introduce Python progressively, starting from basic syntax and moving towards more structured programming concepts. Each module is composed of multiple exercises, designed to reinforce understanding through small, focused functions.
All modules follow the rules defined in their respective subjects:
- Python 3.10+
- No main programs unless explicitly allowed
- Exact output formatting
- Clean, readable, and standards-compliant code - flake8
This repository includes 10 Python modules, each corresponding to a different part of the Milestone 2 Python curriculum.
Each module:
- is organized in its own directory
- contains multiple exercises
- is tested using the provided helper tools
- is written according to 42 evaluation standards
The repository also contains a docs/ folder with additional beginner-friendly notes
and documentation about important Python concepts frequently used in 42 projects and
modern Python development.
Topics include:
- Python typing
- OOP concepts
- Error handling
- Pydantic
- JSON and data validation
- Virtual environments
- Git workflows
mypyandflake8
The objective of these modules is to:
- build a solid foundation in Python
- understand core programming concepts
- develop clean and maintainable code
- prepare for more advanced Python projects in later milestones
🐍 Python at 42 — Milestone 2, 2026