Header Ads

Responsive Ads Here

Check Empty or Not in Python

 Check Empty or Not in Python



name = " "

if name:  # condition will be true if string will not be empty
    print("String is not empty...")
else:
    print("String is empty...")

Powered by Blogger.