I'm working on a lab (in Python 3) that requires me to find and print the character in a string that occurs most frequently. For example:
>>> print(maxCharCount('apple'))
['p']
The idea is to do this using a loop, but I'm confused about how to do this.