I am completely new at Python and I am not sure where to start with this task.
Basically, I want to search for a word in each line; if the word is there, output the entire line to another file (Excel or Text).
The lines look like this:
PA,IAV protein,AC0T9,DHP of IAV,2znl-A+z327-A
PPM1B,IHP of IAV,MAGEA2B,DHP of IAV,2p8e-A+z097-a
So, if the line contains IAV protein, I would like to copy the whole first line.
I don't need someone to just give me a code that works (although I won't refuse it...) but if you could point me in the right direction, that would be much appreciated.