Infosys Interview Question

Why does Python round 6.5 to 6, but 7.5 to 8? Explain logistic regression?