Skip to content
Klay

NumPy arrays

After this lesson you can: Use arrays and vectorised operations instead of Python loops.

First: Lists, dicts and loops

Watch

Notes

A NumPy array is a block of same-shaped, same-type data designed for fast numerical work. Unlike a Python list, which is a flexible container of references to objects, a NumPy array is closer to a compact table of numbers. That compact layout lets NumPy run operations in optimized native code instead of asking Python to handle every element one at a time.

Unlock the full lesson notes, the exercises and the graded checkpoint - ₹5,000 once.