QuestionQ289

VerifiedComputer Programming and Python Fundamentals

What output is expected from the following code?

print(1 // 2)  
Explanation

Python’s // operator performs floor division. The result of 1 // 2 is 0, which is printed.

Community Discussion

No comments yet. Be the first to start the discussion!