M

Mr. Dubey • 100.64K 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: 18
  • Filed under category Python

Explanation by: Mr. Dubey
`//` 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.


Question analytics