hi im making a chat program and im having a spot of trouble with a small part of code:
#def_unknown word_list=open("words.txt", "a") never_save=open("banned.txt", "a") def define_word(word): if word not in never_save.readlines() question="do you want to save %s? (y=yes n=not this time nn=no never)"% word define = raw_input(question) if define.lower()=="y": word=(word+' ') word_list.write(word) elif define.lower()=="n": pass elif define.lower()=="nn": never_save.write(word)
it says that the "not in" is bad syntax. What can i do to fix it?
oh and i know it tabbed in but i was using the idle to make a quick draft and then finish it neatly afterwards.