►
Run
x = ' hello world\n\n' result = x.rstrip() print('Original String : ', x) print('Stripped String : ', result)
Output