python delete the space in a string code example Example: python remove spaces from string >>> " ".join(s.split()) 'Hello World From Pankaj Hi There'