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