NumPy - Fundamentals
What will be the output of the following code snippet?
import numpy as np import time lst = list(range(1000000)) arr = np.array(lst) start = time.time() sum_lst = sum(lst) end = time.time() print(round(end - start, 3)) start = time.time() sum_arr = np.sum(arr) end = time.time() print(round(end - start, 3))
