python replace multiple spaces with one code example
Example 1: replace multiple spaces with single space python
' '.join(mystring.split())
Example 2: reolace double space ti single space in python'
' '.join(mystring.split())
' '.join(mystring.split())
' '.join(mystring.split())