Question : Remove any excess white spaces from within the sentence
Answered by : fantastic-falcon-3sw5vwvd593a
//to remove duplicate whitespaces of all kinds, icluding beginning and ending of string
s = " ".join(s.split())
Source : | Last Update : Mon, 29 Mar 21