A

Admin • 832.27K Points
Coach

Q. What is the output of this code?

Code:
x = 5
y = 2
print(x // y)
  • (A) 2.5
  • (B) 2
  • (C) 2.0
  • (D) 3
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`//` is floor division, which returns the largest integer less than or equal to the result.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.