Solution Exercise 78 : python algorithm that find all index of an occurrence in given string
Exercise 78 ** Write a python algorithm which returns the list of all index where an occurrence occ is found within a given string s without using any predefined method…