How to check if a string is empty in python?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed May 2 19:36:50 EDT 2007


noagbodjivictor at gmail.com a écrit :
> How to check if a string is empty in python?
> if(s == "") ??
> 

if not s:
   print "s is empty"





More information about the Python-list mailing list