python remove whitespace from strign code example Example: delete spaces in string python >>> s.replace(" ", "")