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