demo_ref_string_partition2.py:
txt = "I could eat bananas all day" x = txt.partition("apples") print(x)
➜ begtut>python demo_string_partition2.py
('I could eat bananas all day', '', '')