Filling the array with random values
📁 Advanced Python Topics
import random import time li = [] tmp = 100000 for i in range ( 0 , 100000 ): if tmp! = 0 : x1 = random.randint ( 0 , tmp) li.append (x1) tmp = x1 else : break n = 1 start_time = time.clock () while n & lt; len (li): for i in range ( len No answers yet.
Log in to leave an answer
Blogs