What is the output of this code in Python Language: >>> x = 125
What is the output of this code in Python Language:
>>> x = 125
>>> y = 13
>>> x //= y
>>> x
Show answerHide answer
Correct answer: (A) 9
Explanation
x //= y is floor division: 125 // 13 = 9 (13 × 9 = 117, remainder 8), so x becomes 9.