A concise, hands-on introduction to NumPy through daily exercises and solutions.
This folder contains a sequence of short lessons and coding exercises (DAY01..DAY10) designed to build practical NumPy skills: arrays, indexing, broadcasting, linear algebra, statistics, and performance patterns.
- DAY01..DAY10/: Daily exercises and solutions
Each DAY directory typically includes one or more Python scripts with example problems and solution code.
- Python 3.8+ installed
- NumPy (install with
pip install numpy)
Optional: create and activate a virtual environment before installing packages:
python -m venv .venv
.\.venv\Scripts\activate
pip install --upgrade pip
pip install numpy- Run a script directly with Python, for example:
python DAY03/solution.py- Or run the examples from the repository root pointing to the desired file:
python NumPy101/DAY06/Solution3.pyAdjust filenames as needed — some files use different capitalization (e.g. Solution3.py).
There are no formal tests included here; to validate code, run scripts and experiment in an interactive REPL or notebook.
- Add new exercises by creating a new
DAYNNdirectory with a problem file and a solution file. - Use clear file names and include short docstrings or comments explaining the intent of each exercise.
This collection is provided for learning purposes. Use and modify freely; include attribution if you redistribute.