Ask Question
5 October, 05:21

Create a variable 'temp' and assign the value in Celsius. Display the message 'It's extremely hot day today!' if the temperature is greater than 40 degree C otherwise, displays 'It's not too hot!

+3
Answers (1)
  1. 5 October, 08:21
    0
    temp = 47

    if temp > 40:

    print ("It's extremely hot day today!")

    else:

    print ("It's not too hot!")

    Explanation:

    *The code is in Python.

    Create a variable called temp and set its value as 47

    Check the temp using if-else structure. If the temp is greater than 40, print "It's extremely hot day today!". Otherwise, print "It's not too hot!".
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Create a variable 'temp' and assign the value in Celsius. Display the message 'It's extremely hot day today!' if the temperature is greater ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers