summaryrefslogtreecommitdiff
path: root/progs/a374.py
blob: 3b3eabbbdcfe4ae1a67691b57530c79cca7050b9 (plain)
1
2
3
4
5
6
7
8
9
10
def remove_Occ(s,ch): 
    for i in range(len(s)): 
        if (s[i] == ch): 
            s = s[0 : i] + s[i + 1:] 
            break
    for i in range(len(s) - 1,-1,-1):  
        if (s[i] == ch): 
            s = s[0 : i] + s[i + 1:] 
            break
    return s