def remove_all_occurrences(s, ch):
total_chars = s.count(ch)
s = list(s)
while total_chars:
s.remove(ch)
total_chars -= 1
s = '' . join(s)
return s
s = "python programming version 3.2"
s = remove_all_occurrences(s, 'o')
print(s)
'''
run:
pythn prgramming versin 3.2
'''