Question:
Example of If Statement Used for Temperture:
Author: Jessica RuvalcabaAnswer:
Temp = 60 if temp > 85 : ------print ("temp is {}, scorching summer day" .format(temp)) elif temp > 65 : ------print ("temp is {}, comfortable summer day" .format(temp)) elif temp >45 : -------print ("temp is {}, summer must be leaving" .format(temp)) else : -------print ("temp is {}, feels like winter" .format(temp))
0 / 5 Â (0 ratings)
1 answer(s) in total