python_ref_string_rstrip_2.py:
x
 
txt = "banana,,,,,ssqqqww....."
x = txt.rstrip(",.qsw")
print(x)