SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Data Science 1 exam

» Start this Course
(Practice similar questions for free)
Question:

Example of If Statement Used for Temperture:

Author: Jessica Ruvalcaba



Answer:

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