implementing multiple string replace() using lambda function
<p>I've found tons of solutions doing exactly what I'm trying to do WITHOUT lambda...but I'm learning lambda today...  </p>

<p>I have a string <code>stri</code> and I'm trying to replace some characters in <code>stri</code> that are all stored in a dictionary.</p>

<p><code>bad_chars={"\newline":" ","\n": " ", "\b":" ", "\f":" ", "\r":" ", "\t":" ", "\v":" ", "\0x00":" "}</code> and then I want to print <code>stri</code> out all pretty and empty of all of these ugly characters.  My current code print's <code>stri</code> many many times. </p>

<p><code>format_ugly = lambda stri: [ stri.replace(i,j) for i,j in bad_chars.iteritems()]</code></p>

<p>Is there a way to make it print once, and with only 1 lambda function?</p>
