Como substituir uma string em uma função por outra string em Python?
Eu quero fazer isso:
>>> special = 'x'
>>> random_function('Hello how are you')
'xxxxx xxx xxx xxx'
Eu basicamente quero retornar a string: {(str) -> str}
Eu continuo recebendo variáveis indefinidas.
Desculpe, este é meu primeiro post.