sds2019 icon indicating copy to clipboard operation
sds2019 copied to clipboard

Purpose of "answer_0xx" comments

Open mathiasbruun opened this issue 5 years ago • 6 comments

Just a quick question on the formatting of the Assignment 0 notebook:

What is the purpose of the comments at the top of the exercise cells? Are we supposed to actually fill them in (i.e. # answer_0xx = whatever the value of the variable is) as well as just passing the assertions?

mathiasbruun avatar Jul 15 '19 16:07 mathiasbruun

Hi Mathias

I think the comments are there to show you, where to paste the data. The locked verification cell underneith the part for student input, then validates the variable (through the assert command). Obviously they need to be uncommented to work :)

hyfox avatar Jul 15 '19 16:07 hyfox

Ah, that makes sense! :) So basically a template of sorts. I was just thrown off by the YOUR CODE HERE because it seemed sort of redundant to include both.

mathiasbruun avatar Jul 15 '19 17:07 mathiasbruun

Correct. The #answer_0xx is simply there to remind you what the variable name of your result should be for the assertions to run correctly.

kristianolesenlarsen avatar Jul 18 '19 18:07 kristianolesenlarsen

Hi you all! The same thing goes for the raise NotImplementedError(), right? I mean, for the deliverable we should just delete it so our piece of code stays clean?

GuidoTurdera avatar Jul 28 '19 04:07 GuidoTurdera

Hi you all! The same thing goes for the raise NotImplementedError(), right? I mean, for the deliverable we should just delete it so our piece of code stays clean?

I just commented it out, but I would assume you can delete it.

BjornCilleborg avatar Jul 28 '19 06:07 BjornCilleborg

Either comment it out or delete it when you answer the problems. It is there to help you notice any problems you might have skipped by accident.

kristianolesenlarsen avatar Jul 28 '19 07:07 kristianolesenlarsen