Jan-05-2019, 11:54 AM
def correct(text): corrections = {'1':'I', '5':'S'} return ''.join(corrections.get(char, char) for char in text) print(correct("1teruje5z t0"))
Output:IterujeSz t0
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs