In the context of this exercise, does
strip() only work for single character arguments?
No, you can apply
strip() with an empty string argument, or with strings that are longer than a single character.
strip() with a string argument longer than a single character, it will also remove overlapping sequences of characters.
string = "aaabaaa" new_string = string.strip("aa") print(new_string) # b