Write a Python function that returns True if a string is empty and False otherwise.


Topic: Write a Python function that returns True if a string is empty and False otherwise.

Solution

def is_empty(s):
    if s == "":
        return True
    else:
        return False



List all Python Programs