demo_ref_string_partition.py:
txt = "I could eat bananas all day" x = txt.partition("bananas") print(x)
C:\Users\My Name>python demo_string_partition.py
('I could eat ', 'bananas', ' all day')