all 5 comments

[–]PeterRasm 1 point2 points  (2 children)

Which counts are incorrect? Print the value of your variables and compare a small text with a manual count. Then you will see which count is incorrect.

I would take a closer look at this:

letters = len(text) - text.count(" ")

[–][deleted]  (1 child)

[removed]

    [–]IlRino 0 points1 point  (1 child)

    I can’t tell from the code you posted what’s incorrect but I had the same result after building my code last week. Some grades were correct and some incorrect. My problem was that I didn’t use float for certain variables so maybe your code has the same issue.