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
What is anonymous function or lambda function?
What is pip and when it is used ?
What is setup py?
What is pyunit in python?
How would you implement inheritance in python?
What is def __ init __ in python?
Are sets hashable python?
When would you use a list vs. A tuple vs. A set in python?
In python, how do copy a file?
How do you check the presence of the key in python dictionary?
What does truncate mean in python?
What is timestamp in python?
How is unit test done in python?
Describe python usage in web programming?
What are variables in python?