asked 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

answered
User Victor Di
by
7.8k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.