Answers for "how to get rid of extra spaces in python"

11

python delete white spaces

sentence = ' hello  apple'
sentence.strip()
>>> 'hello  apple'
Posted by: Guest on May-08-2020
6

how to remove spaces in string in python

sentence = '       hello  apple         '
sentence.strip()
>>> 'hello  apple'
Posted by: Guest on May-22-2020
-1

python how to get rid of spaces in print

print('n{} you will be {} in ten years.'.format(name, ageinten))
Posted by: Guest on October-30-2020

Code answers related to "how to get rid of extra spaces in python"

Python Answers by Framework

Browse Popular Code Answers by Language