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


if temp < 32 :

    print ("ice")

elif temp < 212 :

    print ("water")

else :

    print ("steam")



Answer =

If value of temp is in between 32 and 212. Then the output will be ‘water’.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post