Originally posted by bartonc
does it still not matter then?
f = open ("words.txt")
g = open ("dictionary.txt")
word = raw_input("Please enter your word:")
words = [line[:-1] for line in f]
words2 = [line[:-1] for line in g]
if word in words:
print " %s can be found in the dictionary " % word
if word in words2:
print " %s can be found in the user dictionary" % word
if word not in words + words2:
print "Your word was not found. Please try again"
Comment