I have a string
name = "Ben"
that I turn into a list
word = list(name)
I want to replace the characters of the list with asterisks. How can I do this?
I tried using the .replace function, but that was too specific and didn't change all the characters at once.
I need a general solution that will work for any string.