Solution Exrcise 49: count number of times a character appears in string
Exercise 49 Write a Python program as a function that counts the number of times a character appears in a string without using any predefined functions. Solution def caracter_count(s ,…