Answer Posted / 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 |
Post New Answer View All Answers
How do you check the presence of the key in python dictionary?
What is gui in python?
What made you to choose python as a programming language?
How do you sort a dataframe in python?
Which databases are supported by python?
Why python is better than r for data science?
Explain about classes in strings?
Does facebook use python?
What is the dogpile effect?
Is google written in python?
What is a counter in python?
Is null in python?
When do you use list vs. tuple vs. dictionary vs. set?
Why do we need operator overloading?
How type casting is done in python?