I am newbee in python program and I wrote this code:
def DeletChar(e, b) :
counts = e.count(b)
while counts :
counts -= 1
if __name__ == '__main__' :
e = "LOVENOTLOLOVE"
But this code gives me the following error:
Traceback (most recent call last):
File "proc.py", line 20, in <module>
File "main.py", line 9, in DeletChar
AttributeError: 'str' object has no attribute 'remove'
Can anyone help me out to fix this problem?