How do I remove a substring from the end of a string (remove a suffix
Yeah. str.strip doesn''t do what you think it does. str.strip removes any of the characters specified from the beginning and the end of the string. So, "acbacda".strip ("ad") gives ''cbac''; the a at the beginning