fin=open('words.txt')for line in fin: word=line.strip() if len(word)>20: fin2=open('b.txt') fin2.write(word) print(word+'\n')fin2.close()