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 hashmap in python?
Can we develop a web application using Python
Is python an oops?
What is def __ init __ in python?
Can I use python in linux?
Do you need __ init __?
What are the attributes?
What is python web application framework?
Explain about membership operator in python?
What is python, what are the benefits of using it, and what do you understand of pep 8?
How can I find the methods or attributes of an object in python?
How do you check if a string contains a substring in python?