1. Home
  2. Data Science
  3. Python
  4. What is the result of 7 // 2 in Python?

Added 25 Nov 2026

What is the result of 7 // 2 in Python?

  1. 3.5
  2. 4
  3. 3 Correct answer
  4. 2

Correct answer

C. 3

MCQSEXAM

Explanation

// is floor division and returns the integer part of the quotient.

Reference

Asked in: Python Interview Data Types

https://docs.python.org/3/library/stdtypes.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs