Hello, I m facing a problem in passing the hacker block odd even question can you please help me:
enter = int(input())
summ = 0
for i in range(enter):
entry = int(input())
while(entry/10 != 0):
rem = entry % 10
entry = int(entry/10)
summ = summ + rem
if summ % 2 == 0:
if summ % 4 == 0:
print(“Yes”)
else:
print(“No”)
elif summ % 3 == 0:
print(“Yes”)
else:
print(“No”)