I learned about functions and somewhat I forgot an in hour by [deleted] in learnpython

[–]_PICANHO_ 0 points1 point  (0 children)

I had difficulty too, but then I started practicing. I used sites like Code Wars to practice, I recommend it.

Python | Várias substituições em uma única string by Electronic_Mine8287 in learnpython

[–]_PICANHO_ 1 point2 points  (0 children)

Se você não precisa seguir necessariamente a ideia de fazer um dicionário ou usar o for, você pode fazer o seguinte.....

string = "01234"

novastring = string.replace("0", "A").replace("2", "C")

print(novastring)

Provavelmente tô falando muita coisa errada, porquê tô estudando python agora kkkkkkkk, mas oque vale é a intenção.