Mega Code Archive
Categories
/
Python Tutorial
/
String
Conditional Execution and the if Statement
name = raw_input('What is your name? ') if name.endswith('Gumby'): print 'Hello, Mr. Gumby'