Question: use python code Make a program that can detect the temperature and output the condition if the temperature is greater than 24 degrees Celsius it
use python code
Make a program that can detect the temperature and output the condition if the temperature is greater than 24 degrees Celsius it will output a "Heater" but if it is less than 24 degrees Celsius it will produce an output in the form of "AIR CONDITIONING". Use the code below to test whether the program that has been created is correct.
assert temperature (30)==print("heater") assert temperature (16)==print("AC")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
