import random, time l = [random.randint(1,100) for i in range(400000)] s = 0 i = 0 n=len(l) t1 = time.time() while i