summaryrefslogtreecommitdiff
path: root/progs/a472.py
blob: 625f1c59f3255cf387a454a6139799ca81ec3bc5 (plain)
1
2
3
4
5
6
def odd_Equivalent(s,n): 
    count=0
    for i in range(0,n): 
        if (s[i] == '1'): 
            count = count + 1
    return count