0

I am printing my code in this format given below. I want to redirect this output to a file called test.txt. How can I do that?

for row in output:
        print(format_string.format(*row)
Abhishek Bhagate
  • 5,583
  • 3
  • 15
  • 32
  • This may help you https://stackoverflow.com/questions/6159900/correct-way-to-write-line-to-file Also you're missing a parenthesis – Lwi Jun 11 '20 at 10:07
  • it would really helpful if you could also help with my other question – user13726703 Jun 11 '20 at 14:17

0 Answers0