summaryrefslogtreecommitdiff
path: root/progs/a567.py
blob: 5caf29d2e30cff8d5b2eece79da4dd51203380a8 (plain)
1
2
3
4
5
6
def count(s,c) : 
    res = 0 
    for i in range(len(s)) : 
        if (s[i] == c): 
            res = res + 1
    return res