finedust = [110, 70, 120, 80, 110]

for i in range(len(finedust)-1):
    if finedust[i] > 100 and finedust[i+1] > 100:
        print("비상 발령 조치")
        break
else:
    print("정상(연속되지 않음)")

Embed on website

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