RosettaCodeData/Task/Binary-strings/Python/binary-strings-4.py

3 lines
95 B
Python

if x=='': print "Empty string"
if not x: print "Empty string, provided you know x is a string"