Correct Python Program Solution provided with Sample Output Run

Question

Write a Python Program that reads integers, finds the largest of them, and counts its occurrences. Assume that the input ends with number 0.

For example, suppose you have entered 3 5 2 5 5 5 0; the Python program finds the largest number is 5, and the occurrence count for 5 is 4. (Hint: maintain two variables, max and count.)

Note: Ask the user if he/ she would like to run the program again (y/n).

Details
Purchase An Answer Below

Have a similar question?