Q. 3 Answer the given questions (4 x 2 = 8 marks)
Find the output for the following.
a) x=4
y=x-1
x=2
print(x, y)
Answers
Answered by
3
2, 3
x has been mutated to 2 while y still refers to the old value of x - 1
Similar questions
English,
2 months ago
Math,
2 months ago
Political Science,
4 months ago
Math,
10 months ago
Environmental Sciences,
10 months ago
Computer Science,
10 months ago