SyntaxFix
Write A Post
Hire A Developer
Questions
>>> " xyz ".rstrip() ' xyz'
There is more about rstrip in the documentation.
rstrip