rstrip in python not working code example
Example: rstrip python3
#python3 program of rstrip method with optional argument
s = "Hello There "
a = "s"
print(s.rstrip()) # prints s without any spaces at the end
print(s.rstrip(a)) # prints s without any characters of value a at the end