We all do it. Yes we all use print for debugging. Should we do it? Maybe. Should we feel guilty about it? No! In fact, printing to the console is a perfectly valid ...
I have a fairly heavy computational program written in Python that can take up to a minute to run. I'd like to display 10% progress ticks to let me know how it's going.<BR><BR>I've coded it to print ...
os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).