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 == in python?
What are the reserved words in python?
What are the built-in types available in python?
What is python best for?
Differentiate between lists and tuples?
How to send an email in Python?
What is a repl in python?
What is python coverage?
How to compare two list?
Short description of the scoping rules?
How to get a random number in python?
How to remove items from a list while iterating?