Computer Science

Under what conditions will this code fragment print "water"?

if temp < 32 :    
   print ("ice")  
elif temp < 212:  
   print ("water")
else :            
   print ("steam")

Python Control Flow

36 Likes

Answer

When value of temp is greater than or equal to 32 and less than 212 then this code fragment will print "water".

Answered By

21 Likes


Related Questions