Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 months ago. Improve this question So I have this basic code. How could I make it into line? without including the with open, as other stuff