stock = [100, 110, 120, 115, 130, 140, 150, 120]
answer = 1
max = 0
for i in range(len(stock)-1):
if stock[i] < stock[i+1]:
answer += 1
if answer > max:
max = answer
else:
answer = 1
print(max)
To embed this project on your website, copy the following code and paste it into your website's HTML: