Q. What is the output of the Python code: print(5 // 2)?

A
2.5
B
2
C
3
Solution:

The // operator performs floor division, returning the largest integer less than or equal to the division result, so 5 // 2 is 2.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!