Contact: aviboots(AT)netvision.net.il
42,705 questions
55,464 answers
573 users
word = 'aaa' with open('d:\data.txt', mode='r') as file: for line in file: if word in line: print(line) ''' run: aaa bbb eee eee aaa ggg kkk aaa lll '''