arr = [1, 2, 2, 3, 4, 1]
count = 0
maxcount = 1
for i in range(1,len(arr)):
if arr[i] > arr[i-1]:
count += 1
maxcount = max(maxcount,count)
else:
count = 1
print(maxcount)
To embed this project on your website, copy the following code and paste it into your website's HTML: