rougier/numpy-100

100 numpy exercises (with solutions)

Python

14,590

333 commits

updated Aug 26, 2026

See the code

README

100 numpy exercises

Binder

This is a collection of numpy exercises from numpy mailing list, stack overflow, and numpy documentation. I've also created some problems myself to reach the 100 limit. The goal of this collection is to offer a quick reference for both old and new users but also to provide a set of exercises for those who teach. For extended exercises, make sure to read From Python to NumPy.

→ Test them on Binder
→ Read them on GitHub

Note: markdown and ipython notebook are created programmatically from the source data in source/exercises.ktx. To modify the content of these files, please change the text in the source and run the generators.py module with a python interpreter with the libraries under requirements.txt installed.

The keyed text format (ktx) is a minimal human readable key-values to store text (markdown or others) indexed by keys.

This work is licensed under the MIT license.
DOI

Variants in Other Languages

binder
exercises
notebook
numpy
python

rougier/numpy-100

100 numpy exercises (with solutions)

Python

14,590

333 commits

updated Aug 26, 2026

See the code

README

100 numpy exercises

Binder

This is a collection of numpy exercises from numpy mailing list, stack overflow, and numpy documentation. I've also created some problems myself to reach the 100 limit. The goal of this collection is to offer a quick reference for both old and new users but also to provide a set of exercises for those who teach. For extended exercises, make sure to read From Python to NumPy.

→ Test them on Binder
→ Read them on GitHub

Note: markdown and ipython notebook are created programmatically from the source data in source/exercises.ktx. To modify the content of these files, please change the text in the source and run the generators.py module with a python interpreter with the libraries under requirements.txt installed.

The keyed text format (ktx) is a minimal human readable key-values to store text (markdown or others) indexed by keys.

This work is licensed under the MIT license.
DOI

Variants in Other Languages

binder
exercises
notebook
numpy
python

Project health

Overall

5.1/10

Maintained

10/10

Code review

4/10
OpenSSF Scorecard

Significant stargazers

(top 24 of 39)

Behdad Esfahbod

2,273 followers · starred Aug 2015

Michael K.

71 followers · starred Sep 2022

Mark Daoust

552 followers · starred May 2014

Cheney Zhang

150 followers · starred Jan 2022