Question
Why is a NumPy array often preferred over a Python loop for applying the same arithmetic operation to many values?
Select an option. Your answer will be checked instantly.
Correct Answer: D. It supports efficient vectorized operations
Explanation:
Vectorization applies operations across entire arrays using optimized numerical routines. This is usually clearer and faster than element-by-element Python loops.
Leave a Reply