Source Code:
(back to article)
string = " Hello World! \n" string = string.rstrip(" \n") print(repr(string)) # Output: " Hello World!"
Result:
Report an issue