arr = [-2, -5, 7, 11, 0, -1, 3, 1, 5, 9]
answer = 0
for i in range(0, len(arr) - 3):
if arr[i] < arr[i+1] and arr[i+1] > arr[i+2] and arr[i+2] < arr[i+3]:
answer += 1
break
else:
answer = 0
if answer == 1:
print("True")
else:
print("False")
To embed this project on your website, copy the following code and paste it into your website's HTML: