Solution Exercise 77: python algorithm to find the first index of a given occurrence within a given string
Exercise 77 Write a Python algorithm which determines the first index of an existing occurrence within a given string s without using any predefined method as find() or rfind()... The…