Arrays and Vectorised Operations
Know
A NumPy array applies an operation across every element at once, which is both faster and clearer than an explicit loop.
Apply
Express element-wise work as an operation on the whole array.
Watch out
Writing a Python loop over an array, which discards the main reason for using one.
Study move
Convert a loop that doubles every element into a single vectorised expression.
