In weak 2 we learn how problem sets are evaluated: Scope, Correctness, Design and Style. So, is the code submitted for pset 1 also evaluated like this? And, if so, should I change the style to improve my score? Thanks!

1 Answer 1


That applies to Harvard/Yale students only. If you are taking the course via edX, your psets are graded for correctness only.

edit to add in answer to comment It's still important to style your code, even if it's not being graded. You can refer to the CS50 Style Guide and also run style50 to check your code.

as an example: style50 mario.c

  • Not sure if its appropriate to add in a follow up to someone else's question, but if our psets aren't graded for style, what is the best way to make sure we are learning and implementing good style as we move through the course?
    – Cazadore
    Commented Jul 14, 2017 at 5:52
  • @Cazadore see my edit to the answer.
    – curiouskiwi
    Commented Jul 14, 2017 at 5:56
  • Thanks a lot for the example, I was searching for it for almost an hour...
    – sagar jain
    Commented Jan 23, 2019 at 17:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .