Question: 
Write a python function to remove all occurrences of a character in a given string.


Model's Code:
def remove_Char(s, c):
    return s.replace(c, '')



Sample Correct Code:
def remove_Char(s,c) :  
    counts = s.count(c) 
    s = list(s) 
    while counts :  
        s.remove(c) 
        counts -= 1 
    s = '' . join(s)   
    return (s) 


Asserts:
assert remove_Char("aba",'a') == "b"
assert remove_Char("toggle",'g') == "tole"
assert remove_Char("aabbc",'b') == "aac"


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 377 of 974: 272/377 (72.14854111405835%): success