I've mentioned before that
empty strings in Python are false.
This leads to a common
if not string paradigm. Unfortunately, this can be
problematic. Check out this snippet:
>>> string = "" >>> if not string: ... print("empty") ... empty
That pretty much worked out just as we imagined. The empty string returned