Mega Code Archive

 
Categories / Python Tutorial / String
 

In

name = raw_input('What is your name? ')  if 's' in name:     print 'Your name contains the letter "s".'  else:     print 'Your name does not contain the letter "s".'