# 1. What is the result of the execution of the following code:

edited May 12
```2.Why does round(5 / 2) return 2 instead of 3?  (BRAIN)
>>> round(7 / 2)
>>> round(3 / 2)
>>> round(5 / 2)```

+1 vote
answered May 12 by (410 points)
reshown May 13 by ANG YU NING Moe

Answer 2:The issue here is that Python’s round method implements banker’s rounding, where all half values will be rounded to the closest even number.

commented May 13 by (410 points)
THIS IS THE ANSWER IF YOU DON'T KNOW :)
answered May 16 by (140 points)
the answer is 2.5 so if its returning an integer, it will disregard everything after the decimal point
answered May 16 by (300 points)

the round() function rounds the quotients of 7/2 and 3/2 to the nearest integer, which is 3 and 1, respectively. However, the quotient of 5/2 is rounded to 2. This is because the quotient 2.5 is closer to 2 than it is to 3.

answered May 24 by (150 points)
commented 2 days ago by (410 points)
answered May 25 by (140 points)

the round() function performs rounding based on certain rules. In the case of half-values (e.g., 2.5), it rounds to the nearest even number. This behavior is known as "round half to even" or "rounding to nearest, ties to even."
answered May 26 by (140 points)
because when you divide integers the outputted value is the floor (rounded down answer)
answered 6 days ago by (140 points)
because integer / integer is always be a integer

like 5/2 is integer /integer then answer is integer it remove the number after the point and showing only who's number are before point