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