Answers for "python strip to a single with space"

4

trimming spaces in string python

a = "      yo!      "
b = a.strip() # this will remove the white spaces that are leading and trailing
Posted by: Guest on June-20-2020
0

reolace double space ti single space in python'

' '.join(mystring.split())
Posted by: Guest on February-01-2021

Code answers related to "python strip to a single with space"

Python Answers by Framework

Browse Popular Code Answers by Language