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"