I am trying to go through words in a list of words and take out all the '.'s. I made the function ...
why doesn't this work? it prints the words but the periods have not been replaced.
Code:
def clearup(tor): tor = tor.replace('.', '')
Code:
words = fcheck.read().split() for word in words: clearup(word) if word in dictionary: # dictionary is a tuple of words pass else: print word
Comment