Q. Find the errors in the code given below and correct the code:


if n == 0

    print ("zero")

elif :n == 1

    print ('one')

elif

    n == 2:

    print("two")

else n == 3 :

    print ("three")



Answer =

if n == 0 :
    print ("zero")
elif n == 1 :
    print ('one')
elif n == 2 :
    print("two")
elif n == 3 :
    print ("three")

Post a Comment

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

Previous Post Next Post