I never had a cough problem after my first surgery where I had a upper left lobectomy. But after my second surgery, when I had the rest of my left lung removed, about 2 or 3 weeks after surgery I developed a dry nonproductive cough that would send me into spasms. It drove me nuts. My oncologist prescribed a cough suppressant for me, a narcotic, which I used for about 2 months. Eventually the cough went away and I never turned into a drug addict. My pulmonologist theorized that the mediastinal shifting was tugging on my lung tissue and caused an irritation which caused the cough. It did go away though, whatever caused it.
Don M