Welcome To The World Of Hacking


Learn Hacking|Teach Hacking|Learn To Secure|Learn To Code

Friday

PYTHON TUTORIAL 16: ELIF & ELSE STATEMENT

x=5;

if x==3:

    print 'ok'

elif x==4:

    print 'Not sure about it'

elif x==5:

    print 'Exactly what i said'

else:

    print 'I am the last option'

OUTPUT:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...