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 |
Name the function which helps to change the files permission
What is the purpose of bytes() in python?
What objects are iterable in python?
How do you invoke the python interpreter for interactive use?
Tell me is there a switch or case statement in python?
What are the differences between the threading and multiprocessing in python?
What is the difference between abs () and fabs ()?
How to exit python script in command prompt?
What is keyword arguments in python?
What is list comprehension and dictionary comprehension and why we use it?
What is the use of map in python?
What is GIL? What does it do?Talk to me about the GIL. How does it impact concurrency in Python? What kinds of applications does it impact more than others?