Don't use bare try-except blocks in Python!
This can lead to a program catching all sorts of errors that you generally don't want to catch, with some examples being undefined names and keyboard interrupts (Ctrl-C). Speaking from first hand experience, it can make debugging much more difficult as well.
Follow @codeaffinitydev to learn more about python, coding, and tech!
#python #pythondeveloper #coding #programmer #programming #computerscience #knowledge #code #pythontutorial