isdsucph / isds2021

Introduction to Social Data Science 2021 - a summer school course https://isdsucph.github.io/isds2021/
MIT License
22 stars 37 forks source link

Wrong assert statements? #25

Closed johankll closed 3 years ago

johankll commented 3 years ago

Hi,

I just received assignment 0 in a "corrected" version which shows the hidden assert statements. I wonder what I have done wrong in the following two exercises?

Ex. 0.1.3 _(i think it may be a mistake that the assert statement requires answer_0031 == 5.3, when 1.7+4 is quite obviously not 5.3)_ image

Ex. 0.3.1 (i have tried applying my function to the lists in the assert statements and get the right results, so I don't understand what is wrong): image

joachimkrasmussen commented 3 years ago

Hi Johan,

Regarding Ex. 0.1.3: It's clearly a typo in the assignment. As you say, you obviously got it right.

Regarding Ex. 0.3.1: The question asks you to return a tuple. What you return with your function is a list (of tuples). Hence, there seems to be nothing wrong with the assert statement which looks for a tuple.

Best, Joachim

johankll commented 3 years ago

Thanks!