How to remove spaces from a string in Python?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
Python's strip() and replace() functions can be used to eliminate spaces from a string. The replace() function eliminates all of the white spaces in the string, while the strip() function eliminates the leading and following white spaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
Python's strip() and replace() functions can be used to eliminate spaces from a string. The replace() function eliminates all of the white spaces in the string, while the strip() function eliminates the leading and following white spaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which python function will you use to convert a number to a string?
How do you write a function in python 3?
What are the disadvantages of the Python programming language?
Is Python an easy-to-learn language
Can a class run without constructor?
What is pytables?
What do you know about the python enumerate?
What is index out of range error?
Explain pickling and unpickling.
Does pandas recognize dates when importing data?
How can you create a gui based application in python for client-side functionality?
Is string iterable python?