demo_ref_string_strip2.py:
txt = ",,,,,rrttgg.....banana....rrr" x = txt.strip(",.grt") print(x)
➜ begtut>python demo_string_strip2.py
banana