Write a program to remove the leading and trailing characters


Topic: Write a program to remove the leading and trailing characters

Solution

txt = ",,,,,rrttgg.....banana....rrr"
x = txt.strip(",.grt")
print(x)



List all Python Programs