It doesn't matter what number I enter, d variable is somehow always 326, please help I'm a beginner.
a=int(input("enter a number:"))
c=0
d=0
while a>0:
b=a%10
a=a/10
if b%2==0:
c=c+1
else:
d=d+1
print("even numbers:",c)
print("odd numbers:",d)
This is pretty much it