Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm confused.

The code you have on one of the quiz questions is:

----------------

a = 1 b = 2 c = 3

def calculator(a,b,c): b = a - c a = 2 return a+b

x = calculator(c,b,a) print(x)

----------------

This returns 4. But the only options you have are:

A. no output B. 0 C. 3



The iframe that the form is in is too small. 4 is there, you just need to scroll


Yep, make sure to scroll down to pick the right answer; which is 4.


4 was an option for me. Perhaps you had to scroll to see it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: