Python remove empty space from a sentence code example Example: remove after and before space python st = " a " strip(st) #Output : "a"