else Clauses : If : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » If »

 

else Clauses


name = raw_input('What is your name? ')
if name.endswith('Gumby'):
    print 'Hello, Mr. Gumby'
else
    print 'Hello, stranger'



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» If