What is 'Vectorization' in NumPy/Python?

What is 'Vectorization' in NumPy/Python?

Approach: Describe performing operations on entire arrays instead of using loops.

A style of programming where operations are applied to entire arrays rather than individual elements using loops. It leverages optimized C and Fortran code underneath (and SIMD instructions) for massive speedups.

Follow-up: Why is it faster than a Python for-loop?

Key concepts: simd, performance, broadcasting.