In this program, we will take a string as input and find the most simultaneously repeated character in the input string.
Steps to solve the program
- Take a string as input.
- Create two variables to find the most simultaneously repeated character in a string.
- Using For loop with the range() function find whether a character is repeated in the string or not.
- If yes then, count how many times it has been repeated.
- Print the most simultaneously repeated character in a string.
Output :