Robotics & Artificial Intelligence
The statement 5 // 2 will return …………… .
- 2
- 2.5
- 5
- 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