dust = [70, 160, 180, 50, 90, 100, 40]

for i in range(len(dust) - 1):
    if dust[i] < 150 and dust[i + 1] < 150:
        print("True")
        break
else:
    print("False")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: