Mega Code Archive

 
Categories / Python Tutorial / String
 

In is case sensitive

if 'Gumby' in ['gumby', 'smith', 'jones']: print 'Found it!'