Answers for "how to remove white space between stiirng py"

0

how to strip white space of text in python?

sentence = ' hello  apple'
" ".join(sentence.split())
>>> 'hello apple'
Posted by: Guest on March-26-2021

Code answers related to "how to remove white space between stiirng py"

Python Answers by Framework

Browse Popular Code Answers by Language