I have read elsewhere on stackoverflow that the most elegant way to check for an empty string in Python (e.g. let's say it's a string called response) is to do:
if not response:
# do some stuff
The reason being that strings can evaluate to boolean objects.
So my question is, does the below code say the same thing?
if response == False:
# do some stuff