Answers for "python delete whitespaces longer than 1 from string"

2

python trim whitespace from end of string

>>> "    xyz     ".rstrip()
'    xyz'
Posted by: Guest on May-07-2020
0

python string remove whitespace

' sss d ssd s'.replace(" ", "")
# output: 'sssdssds'
Posted by: Guest on February-25-2021

Code answers related to "python delete whitespaces longer than 1 from string"

Python Answers by Framework

Browse Popular Code Answers by Language