Consider this Python division:

base = 12.0

height = 16

Area = 1/2 \* Base \* Height

The solution shows of it this

area = (base \* height)/2;

It confuses me that 1/2 will be float and Python will show only 0, not 0.5. Why does the solution use /2 in this case?