Numpy is actually known for the less time taken to complete compared to others like lists and tupples. But from the code below if we take out the np and check for the time taken it is around 1.8 seconds, but with np the sum is taking over 21 seconds. Can you esplain me why?
import numpy as np
import time
start = time.process_time()
p = np.sum(range(1,100000000))
print(time.process_time() - start)