Run
my_string = "" if my_string.isspace(): print('Given string is SPACE.') else: print('Given string is NOT SPACE.')
Output