Answer Posted / 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 |
Post New Answer View All Answers
How to implement an 'enum' in python?
Is there any way to kill a thread in python?
What is pandas?
Differentiate list and tuple with an example?
What are accessors, mutators, @property?
What are docstrings in python?
What is metadata in python?
What are loops in python?
Why python has no private?
Which is best python or r?
What is the purpose of uuid?
How does python interpreter work?
How are uuid generated?
Explain the use of the ‘nonlocal’ keyword in python?
What is python with statement?