How to check if a string is empty in python?
"Martin v. Löwis"
martin at v.loewis.de
Wed May 2 17:10:24 EDT 2007
noagbodjivictor at gmail.com schrieb:
> How to check if a string is empty in python?
> if(s == "") ??
Exactly so. "not s" works as well.
Martin
More information about the Python-list
mailing list