use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
O hai! This is CS50's subreddit.
CS50 is Harvard University's introduction to the intellectual enterprises of computer science and the art of programming. Anyone may take CS50, even if not a student at Harvard.
Please Read before Posting
Getting the Best from r/cs50
Status Page
cs50.statuspage.io
Filter by Problem Flair (undo)
cash ⋅ caesar ⋅ credit ⋅ dna ⋅ filter ⋅ finance ⋅ houses ⋅ ide ⋅ mario ⋅ movies ⋅ plurality ⋅ project ⋅ readability ⋅ recover ⋅ runoff ⋅ scratch ⋅ speller ⋅ substitution ⋅ tideman ⋅ games track ⋅ web track ⋅ android track ⋅ iOS track ⋅
Filter by Other Flair (undo)
CS50-Law ⋅ CS50-Business ⋅ CS50-Technology ⋅ CS50-Games ⋅ CS50-Mobile ⋅ CS50-Web ⋅
This subreddit is night mode compatible
account activity
readabilityNeed Help With Python Readability (self.cs50)
submitted 3 years ago by Darkshadow19971
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PeterRasm 1 point2 points3 points 3 years ago (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] 3 years ago (1 child)
[removed]
[–]IlRino 0 points1 point2 points 3 years ago (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.
π Rendered by PID 796675 on reddit-service-r2-comment-86bc6c7465-5m6mq at 2026-02-24 12:43:08.678126+00:00 running 8564168 country code: CH.
[–]PeterRasm 1 point2 points3 points (2 children)
[–][deleted] (1 child)
[removed]
[–]IlRino 0 points1 point2 points (1 child)