How to avoid number converting to the float after division in python?
Advertisements I was doing codewars Super Coordinate Sums task. def super_sum(d, n): return int((n – 1) * d / 2) * n ** d This is code that i wrote. It works for like 80% of test cases, but not for those for whom d is odd and n is even. I understand that it… Read More How to avoid number converting to the float after division in python?