Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT S = " aabbgg " NEW_LINE P = [ [ ' a ' , ' b ' ] , [ ' b ' , ' g ' ] , [ ' g ' , ' a ' ] ] NEW_LINE replaceCharacters ( S , P ) NEW_LINE DEDENT