A

Admin • 833K Points
Coach

Q. What will be the output of the following code: print(3 // 2)?

  • (A) 1.5
  • (B) 1
  • (C) 2
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The '//' operator is used for floor division, which returns the quotient of the division without the remainder. So 3 // 2 is 1.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.