is there any way to know if the previous appended value is greater than the newly appended value using while loop
unifarr = []
forwarr = []
while t :
unif = randint(-75, 75) # To move face in every possible angle
forw = randint(-1, 1) # Move every 1 pixel, -1 for back 1 for forward
t.left(unif)
t.forward(forw)
sleep(0.01)
forwarr.append(forw)
unifarr.append(unif)# check if prev. value is < or > than newly appended value
i am using random that appends in an array is there any possible way to check if the previous appended random value is greater than the newly appended value
forwarris a list, you could doif forwarrr[-1] > forw