KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

The statement 5 // 2 will return …………… .

  1. 2
  2. 2.5
  3. 5
  4. 0

Getting Started

1 Like

Answer

2

Reason — The floor division operator (//) performs integer division and returns the quotient without the decimal part after division of two numbers. Hence, when 5 is divided by 2, it returns 2 and not 2.5.

Answered By

2 Likes


Related Questions