A

Admin • 828.03K Points
Coach

Q. What is the output of this code?

Code:
print(5 % 2)
  • (A) 2
  • (B) 1
  • (C) 0
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
`%` is the modulo operator. 5 % 2 equals 1.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.