Source Code:
(back to article)
string_with_custom_chars = "###This string has ### custom chars###" trimmed_string = string_with_custom_chars.strip("#") print(trimmed_string) # Output: "This string has ### custom chars"
Result:
Report an issue