Criteria¶
Follows the interaction example in the task and passes the autograder tests.
Code is easy to follow, e.g.:
no code duplication (by using functions)
relatively long code is broken down in functions
no deeply nested logic where a simpler structure works
The code is commented where the why is not obvious.
Variable names
are meaningful
follow one consistent convention: camel case or snake case
Numbers with a special meaning have a name.
(recommended) Only the programming structures introduced so far are used.[1]
Sum and average of n integers¶
(15-30 min)
Component costs¶
Pythagorean triples¶
Diamond pattern¶
Roman numerals¶
You may already know more advanced concepts. Sticking to what we’ve covered so far trains you to solve problems with a limited toolbox, and it means you face the same challenges as your classmates, so you can help each other. This criterion is optional; the choice is yours.