Computer Science for IGCSE & O level - Programming (Section 7 - No. 17)

What is the result of the following code segment: `x = 10; y = 3; z = x // y;`?
3
3.33
1
10

Explanation

The // operator performs integer division, so 10 // 3 equals 3.

Comments (0)

Advertisement