1 2 3 4 5 6 7 8
def remove_Char(s,c) : counts = s.count(c) s = list(s) while counts : s.remove(c) counts -= 1 s = '' . join(s) return (s)