w3schools python strip code example
Example 1: python strip
txt = " test "
txt.strip()
#Output: "test"
txt.lstrip()
#Output: "test "
txt.rstrip()
#Output: " test"
Example 2: strip()
txt = ",,,,,rrttgg.....banana....rrr"
x = txt.strip(",.grt")
#outputs banana
print(x)