I have declared at line 1-3 for the value to be in integer. But when running the code, it'll give me float value instead of integer unless I declare it:
total = int(group_3 + group_2 + group_1)
Is this because of Modulo? If so, any idea why?
a = int(input())
b = int(input())
c = int(input())
group_1 = (((a % 2) + a) / 2)
group_2 = (((b % 2) + b) / 2)
group_3 = (((c % 2) + c) / 2)
total = (group_3 + group_2 + group_1)
print(type(total))
print(total)