How to use maketrans() and translate() methods on strings in python3? : How can I use the maketrans() and tranlate() method on a string to get the translated string in Python3?
eg.
In variable
s='The quick brown fox'
If I have to replace 'The' with '123' in variable 's' how can I do it with these two methods in Python3?
output: '123 quick brown fox'