>>> print "".join(" hello world ".split())
helloworld
The key to the above is that split() separates the string on
any amount of whitespace when no separator is specified.
AI-enabled developer productivity, build systems, and engineering leadership
Published · Programming