Replacing many characters in a string with Python
In order to replace a character in a string with Python replace command can be used easily: str.replace(old, new[, count]) [return a copy of the string with all occurrences of substring old replaced by new. If the optional argument count is given, only the first count occurrences are replaced.] But …