temps = [32, 15, -5]
answer = []
for i in range(0,len(temps)):
if temps[i] >= 30:
answer.append("폭염")
elif temps[i] <= 0:
answer.append("한파")
else:
answer.append("정상")
print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: