banword = ["/","\n",'"',"'","Badword","*","badword","badword","badword"]
okword = ["","","","","f","","Badword","badword","badword"]
for c in range (1,len(commentaries) + 1):
    azpeo = commentaries[c]
    print(azpeo)
    for c in range(len(banword)):
        azpeo.replace(banword[c],okword[c])
    commentaries[c] = azpeo
So here, i am trying to delete bad word from sentences that are contained in a dictionnary, the dictionnary look like that :
commentaries = {1 : "sentences", 2 : "sentences"}```
But nothing is changing at all and i can't understand why ?
I tried removing characters with .replace method by stocking each value in a variable and then using .replace but this does not seems to work ?
 
     
     
    