python suppress space in string code example Example: delete spaces in string python >>> s.replace(" ", "")