Replace dictionary's empty values python
<p>First of all, I'm modifying another guy's code.</p>

<p>I'm trying to print the values of dictionary that correspond to a <code>key</code> like so: </p>

<p><code>print (map(str, dict[key]))</code></p>

<p>All works fine, but there are some fields that are printed with just the double quotes, like so <code>['some_value', '', 'other_value', etc...]</code>, what I'm trying to accomplish here, is to replace the single quotes <code>''</code>, with <code>n/a</code> </p>

<p>my approach, at first, was to do this: <code>print (map(str.replace("\'\'", "n/a"), dict[key]))</code>, but I get the <code>TypeError</code> message: <code>TypeError: replace() takes at least 2 arguments (1 given)</code></p>

<p>How can I work around this?</p>