number = 200
for char in str(number):
if int(char) % 2 == 0:
print("even")
else:
print("odd")
Your issue is that you are converted the number to a string and then looping through it but not converting each character back into an int to check if it’s even.