Python 3 - write a program that lets the user enter a string and displays the character that appears most frequently in the string.
This is my attempt so far, I know it needs a lot of work:
def main():
count = 0
my_string = input('Enter a sentence: ')
for ch in my_string:
if ch == 'A' or ch == 'a':
count+=1
print('The most popular character appears ', count, 'times.')
main()