Solution Exercise 72 : python program to examin if an occurrence is present within a given string
Exercise 72 ** Write a python algorithm to examine if an occurrence is present within a given string. Solution def examineOccurrence(s , occ): # getting the length of the occurrence…