What will be the output of the following Python expression?

print(-7 // 2)
                        

Options

  • A. -3
  • B. -3.5
  • C. -4
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. -4

Detailed Explanation

Explanation: Floor division rounds down towards negative infinity, so the result is -4.