demo_ref_string_rstrip.py:
txt = " banana " x = txt.rstrip() print("of all fruits", x, "is my favorite")
➜ begtut>python demo_string_rstrip.py
of all fruits banana is my favorite