Run
# Given string x = "......,,hello world----...-" # Strip whitespaces on left side of string x_stripped = x.lstrip(".-,") print(f"Original : \"{x}\"") print(f"Left Stripped : \"{x_stripped}\"")
Output