[2 / 1 / 1]
Quoted By: >>1515993
I need some help with Python. I’m aware that using a script to turn another program (my_code.py)into a PDF file using libraries like FPDF and Reportlab is rather simple. But what about creating a function inside of my_code.py whose purpose is to generate a PDF file of my_code.py and all its outputs? Can you suggest a way to do so? My attempts so far have led to loops while the program is executing, I’m assuming that happens because there a read-call-read-call sort of loop happening there. I may be making everything more complicated by limiting myself to using one single program, but still….
