How do I edit my mapping so that it changes the values of the characters in the mapping with an if statement?
I’m coding in python and I want to change the mapping of my characters so that if the same character is printed again the value of it changes to 1 and another value takes the value of the initial place.