3 ms·
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 retur
by mpva 5y ago
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
- alexgmcm 5y ago4 was an option for me. Perhaps you had to scroll to see it.
- mintone 5y agoThe iframe that the form is in is too small. 4 is there, you just need to scroll
- Alisa_honolulu 5y agoYep, make sure to scroll down to pick the right answer; which is 4.