Answer to Question #220754 in Python for Hari nadh babu

Question #220754

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

1
Expert's answer
2021-07-28T03:00:10-0400
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS