I have this function:
def check_csv(final_word): with open("directory\\trap_words.csv", "r") as f: reader = csv.reader(f) for i in reader: str(i) if final_word in i: return True else: return False To check if the parameter final_word is in a csv file But it does not return true even if the string is the same as one of the words in the csv file This is the csv file: 
i?return Falseout of the loop