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