def oldd(lst):
    even = 0
    odd = 0
    for i in lst:
        if i % 2 == 0:
            even += 1
        else:
            odd += 1
    return even, odd


lst = [20, 31, 55, 67, 34, 5, 6, 7, 9]
even, odd = oldd(lst)
print(even)
print(odd)

2e2c9c44577f33cf2a3faa3d7ab6b51f2f0dd34f
<mask token>

def oldd(lst):
    even = 0
    odd = 0
    for i in lst:
        if i % 2 == 0:
            even += 1
        else:
            odd += 1
    return even, odd


<mask token>

def oldd(lst):
    even = 0
    odd = 0
    for i in lst:
        if i % 2 == 0:
            even += 1
        else:
            odd += 1
    return even, odd


<mask token>
print(even)
print(odd)

def oldd(lst):
    even = 0
    odd = 0
    for i in lst:
        if i % 2 == 0:
            even += 1
        else:
            odd += 1
    return even, odd


lst = [20, 31, 55, 67, 34, 5, 6, 7, 9]
even, odd = oldd(lst)
print(even)
print(odd)
