A

Admin • 802.91K Points
Coach

Q. What will be the output of the following code?

Code:
print(10 % 3)
  • (A) 3
  • (B) 1
  • (C) 0
  • (D) 10
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
The % operator returns the remainder. 10 % 3 = 1.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.