Conditional Execution and the if Statement : Endswith : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Endswith »

 

Conditional Execution and the if Statement


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



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Endswith