NumPy Exercises
Exercises
Test your NumPy skills with exercises from all categories:
Introduction
Creating Arrays
Indexing Arrays
Slicing Arrays
Data Types
Copy vs View
Shape Arrays
Reshape Arrays
Iteration Arrays
Join Arrays
Split Arrays
Search Arrays
Sort Arrays
Filter Arrays
Random
Random Data Distribution
Random Permutation
Normal Distribution
Binomial Distribution
Poisson Distribution
Uniform Distribution
Logistic Distribution
Multinomial Distribution
Exponential Distribution
Chi Square Distribution
Rayleigh Distribution
Pareto Distribution
Zipf Distribution
Ufuncs
Create Ufunc
Simple Arithmetic
Rounding Decimals
Logs
Summations
Products
Differences
Finding LCM
Finding GCD
Trigonometric
Hyperbolic
Set Operations
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 on 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.