Run »
txt = "I could eat bananas all day, bananas are my favorite fruit" x = txt.rpartition("apples") print(x)
('', '', 'I could eat bananas all day, bananas are my favorite fruit')