►
Run
x = 'hello world apple world banana' result = x.rpartition('world') print('Original String : ', x) print('Partitions : ', result)
Output