Skip to content
LearnPY
NumPy

NumPy

Learn to build, reshape, and slice arrays, then use broadcasting and vectorized operations to replace slow Python loops with clear, fast code.

What you'll practice

  • Arrays
  • Broadcasting
  • Indexing
  • Random
  • Linear algebra

Lessons

3 lessons, in order

  1. 01NumPy arrays: one type, many valuesMeet the array: a fixed-type block of values that supports whole-array arithmetic, slicing, and shape-aware operations.
  2. 02Broadcasting and aggregation without loopsCombine arrays of different shapes, reduce values along an axis, and use keepdims to keep the dimensions you still need.
  3. 03Randomness and linear algebraGenerate reproducible random data with a seeded Generator, then use matrix products and solve to work with systems of equations.