NumPy Exercises
Test your NumPy skills with exercises from all categories:
Exercises
Tip: Sign in to track your progress - it's free.
Introduction3 exercises
Creating Arrays4 exercises
Indexing Arrays5 exercises
Slicing Arrays5 exercises
Data Types5 exercises
Copy vs View3 exercises
Shape Arrays3 exercises
Reshape Arrays3 exercises
Iteration Arrays3 exercises
Join Arrays3 exercises
Split Arrays3 exercises
Search Arrays3 exercises
Sort Arrays3 exercises
Filter Arrays3 exercises
Random3 exercises
Random Data Distribution3 exercises
Random Permutation3 exercises
Normal Distribution3 exercises
Binomial Distribution3 exercises
Poisson Distribution3 exercises
Uniform Distribution3 exercises
Logistic Distribution3 exercises
Multinomial Distribution3 exercises
Exponential Distribution3 exercises
Chi Square Distribution3 exercises
Rayleigh Distribution3 exercises
Pareto Distribution3 exercises
Zipf Distribution3 exercises
Ufuncs3 exercises
Create Ufunc3 exercises
Simple Arithmetic3 exercises
Rounding Decimals3 exercises
Logs3 exercises
Summations3 exercises
Products3 exercises
Differences3 exercises
Finding LCM3 exercises
Finding GCD3 exercises
Trigonometric3 exercises
Hyperbolic3 exercises
Set Operations3 exercises
Log in to track your progress
If you haven't already, sign up to become a W3Schooler, and get points for every exercise you complete.
As a logged-in W3Schools user you will have access to many features like having your own web page, track your learning progress, receive personal guided paths, and more.
The Exercise
The exercises are a mix of "multiple choice" and "fill in the blanks" questions. There are between 3 and 9 questions in each category. The answer can be found in the corresponding tutorial chapter. If you're stuck, or answer wrong, you can try again or hit the "Show Answer" button to see the correct answer.