9.1k views
2 votes
Consider the following code: x = 17 y = 5 print (x % y) What is output?

1 Answer

5 votes

Answer:

2

Step-by-step explanation:

The modulo operator returns the remainder after integer division.

17 / 5 has integer result 15 and remainder 2

User Victor Di
by
5.2k points