Beginner at coding, can’t seem to understand/find the problem to solve this error.
Here is my code:
CountPopularChars
The code runs perfectly, but since this was an assignment, they ran a few tests to the code that is unknown to me and came back with the error stated.
This code is calculate the top 5 most frequent characters.
Here is an example:
python CountPopularChars.py sdsERwweYxcxeewHJesddsdskjjkjrFGe21DS2145o9003gDDS
Here is the intended output:
d:7,s:7,e:6,j:4,w:3
yan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.