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