DEV Community

Discussion on: 4 Basic Python Tips to Automate Your Workflow

Collapse
 
a5537 profile image
A5537

The tips are quite interesting, thank you for sharing.

Maybe it's nothing serious, but I find that the code for tip #3 Automatic File Backup has some slight issues:

  • syntax highlighting hints that there is a problem with quotes (I think that there is one extra double quote before %s in the "Successfully created..." string)

  • if I understand the intended logic right (find the first unused filename and then create a zip file with that name), the code starting with the first print statement is not supposed to be a part of the infinite loop (i.e., it should not be indented twice)