I want to replace w / asterisks list characters
Instead, create a new string object with asterisks, for example
word = '*' * len(name)
In Python, you can propagate a string with a number to get the same string concatenated. For example,
>>> '*' * 3
'***'
>>> 'abc' * 3
'abcabcabc'
source
share