I don't understand why the strip() function returns the way it does below. I want to strip() the last occurence of Axyx. I got around it by using rstrip('Axyx') but what's the explanation for the following?
>>>"Abcd Efgh Axyx".strip('Axyx')
'bcd Efgh '