Can anyone explain where i have done mistake [closed]

  python
num = int(input("Enter the number:"))

even = 0
odd = 0

for i in num:
    if not i % 2:
        even += 1
    else:
        odd += 1
print("r", "Number of Even numbers",even,"n", "Number of Odd numbers",odd)

Source: Python Questions

LEAVE A COMMENT