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 |
What is gui in python?
What are all the operating system that python can run on?
Is python easy to learn?
Is multiple inheritance possible in Python?
Explain about repr function?
How you can minimize the memcached server outages in your python development?
What are the differences between c and python?
Tell me how memcached should not be used in your python project?
Is string empty python?
How do you sort a list of numbers in python?
What is the best Django or PHP?
How to split a string into a list?