import random as r
a=r.randint(0,101)
b=r.randint(0,301)
if a>=80 and b>=200:
    print('ダムの水位が非常に危険です。緊急措置が必要です')
elif a>=80:
    print('ダムの水位が高いです。警戒してください')
elif b>=200:
    print('降水量が多いため、今後の水位上昇に注意してください')
elif a<50 and b<100:
    print('ダムの状況は安全です')
else:
    print('ダムの状況は安定していますが、警戒が必要です')
    

Embed on website

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