Answer:
def remove_all(text, char):
return ''.join(x for x in text if x not in char )
print(remove_all("Summer is here!", 'e'))
Step-by-step explanation:
- join() method in Python takes all the element in the string and joins them. However, inside the join method, we excluded the elements that equals to char in the text