Using Replace Function In Python Dictionary Append