Write a program in python
to input temperature and forecast the weather as if temp is
more than 30 print 'Hot', if temp in less than 20 print 'Cold'else print
"Normal".
Answers
Answered by
5
Answer:
temperature = int(input( 'Current temperature ' ))
if temperature > 30:
print('Hot')
elif temperature < 20:
print('Cold')
else:
print('Normal')
Similar questions