How to Find Total Occurences of a Substring using find() in Python

Hi All,

I need help to understand hoe does this find() works in the case of, find Total occurrences of a substring.

This is my assignment question.

[Thread 1]