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