re: Loops in Python – comparison, and performance VIEW POST

FULL DISCUSSION
 

Numpy code you tried is vectorized so it runs faster. You could also try cython or numba to check the improvement in execution time.

code of conduct - report abuse