Answers for "python3 blank value"

24

python null

a = None
Posted by: Guest on March-28-2020
3

how to check empty string in python

my_empty_string = ''  # given the empty string a variable

def check_empty():
    if not my_empty_string: 
        print("Empty")
    else:
        print("Not Empty")


check_empty()



# by George Kwabena
Posted by: Guest on September-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language