Weather condition
This Program name is Weather condition. Write a Python program to Weather condition, it has two test cases
The below link contains Weather condition question, explanation and test cases
https://drive.google.com/file/d/1scnLsEZFIGuWVs7r50zUIoPOl0UWzOJ0/view?usp=sharing
We need exact output when the code was run
T = eval(input('Enter real number here:'))
if T < 0:
print('Freezing weather')
elif 0 <= T < 10:
print('Very cold weather')
elif 10 <= T < 20:
print|('Cold weather')
elif 20 <= T < 30:
print('Normal')
elif 30 <= T < 40:
print('hot')
else:
print('Very hot')
Enter real number here:-50.0
Freezing weather
Enter real number here:5.7
Very cold weather
Comments
Leave a comment