0
What value does h refer?
k = 3 h = 5 k = h after the code above has executed, what value does h refer? I answered 5 but it said it was wrong. my reasoning was that I was changing the meaning of k to match h, which is 5.
4 Answers
+ 3
Value of h is still 5.
Where does this question come from?
+ 1
Very easy to test:
k = 3
h = 5
k = h
print (h)
And, indeed, h equals 5 in the end.
Unless there was more to that quiz (maybe additional lines of code?), your answer was absolutely correct.
0
my teacher. it was quiz.
0
that's what I thought. thank you, I'm going to contact my teacher bc I think I wither put in a typo or is just wrong.