Question: what is the difference between find and rfind in python?
Answer: find() will return the index of the first match. But rfind will give you the last occurence of the pattern. It will be clear if you try to match repeated match case.