[Tutor] class method problem

David Hutto smokefloat at gmail.com
Sun Sep 26 00:13:23 CEST 2010

Since I had nothing else to do, but practice, this looks much better:

def find(word, search):
	if search in word:
		print True
		print False

word = raw_input('Enter string of letters to search: ' )
search = raw_input('Enter character to find: ')


More information about the Tutor mailing list