Q. What is the error in following code? Correct the code:


weather = 'raining'

if weather = 'sunny' :

    print ("wear sunblock")

elif weather = "snow" :

    print ("going skiing")

else :

    print (weather)



Answer =

weather = 'raining'
if weather == 'sunny' :
    print ("wear sunblock")
elif weather == "snow" :
    print ("going skiing")
else :
    print (weather)

6 Comments

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

Post a Comment

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

Previous Post Next Post