PRACTICE / UNDERSTAND / REPEAT

Python: Operators

Practice operators with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

20 questionsAnswers explainedFree · no login
Question 1 of 20
Operators · MCQQuestion link ↗

What does floor division print for these positive integers?

print(5 // 3)
Choose one answer
Answer & explanation

Answer: 1

For positive operands, // returns the integer quotient rounded down.