Array Programming & Vectorization

Arrays, shapes, broadcasting and the loop you should not write. Every lab in this curriculum is written against this.

Module 01.1 · Beginner
Free

5h · 7 lessons · 1 challenge

About this module

None of the source courses teaches this, and all of them assume it. Their labs hand you NumPy arrays on the first day and their vectorization lectures explain why a loop is slow without explaining what replaces it.

This module is the missing prerequisite: what an array is, what a shape means, how broadcasting decides whether two of them can meet, and the handful of patterns that turn a loop into one expression.

After this module you can

7 lessons

Kind
Concept
Length
40 min
Kind
Concept
Length
40 min
Kind
Concept
Length
45 min
Kind
Interactive
Length
30 min
Kind
Concept
Length
40 min
Kind
Checkpoint
Length
25 min

The challenge: Broadcast or Break

Twenty pairs of shapes. Say whether they broadcast, and to what. Wrong answers show you the rule you missed.

Worth 300 XP.

Related modules

All modules
Calculus & Optimization
9h · 11 lessons
Probability
8h · 12 lessons
Statistics & Inference
9h · 12 lessons