0

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!

3

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

3
  • 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
    Jul 14 '17 at 5:52
  • @Cazadore see my edit to the answer.
    – curiouskiwi
    Jul 14 '17 at 5:56
  • Thanks a lot for the example, I was searching for it for almost an hour...
    – sagar jain
    Jan 23 '19 at 17:07

You must log in to answer this question.

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