abjer / sds2019

Social Data Science 2019 - a summer school course
https://abjer.github.io/sds2019
46 stars 96 forks source link

Purpose of "answer_0xx" comments #5

Open mathiasbruun opened 4 years ago

mathiasbruun commented 4 years ago

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?

hyfox commented 4 years ago

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 :)

mathiasbruun commented 4 years ago

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.

Kristianuruplarsen commented 4 years ago

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.

GuidoTurdera commented 4 years ago

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?

BjornCilleborg commented 4 years ago

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.

Kristianuruplarsen commented 4 years ago

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.