![]() ![]() The rstrip method removes the trailing whitespace and returns the new string. We will explain this in the following examples. Strip() function does not affect any white space between the non-white space characters. The characters – and $ and any if provided will be removed from the beginning and end of this string. We take a string that has some single white spaces at the start and end of the string. In this Python example, we demonstrate the usage of the strip() method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |