First of all, I'm modifying another guy's code.
I'm trying to print the values of dictionary that correspond to a key like so:
print (map(str, dict[key]))
All works fine, but there are some fields that are printed with just the double quotes, like so ['some_value', '', 'other_value', etc...], what I'm trying to accomplish here, is to replace the single quotes '', with n/a
my approach, at first, was to do this: print (map(str.replace("\'\'", "n/a"), dict[key])), but I get the TypeError message: TypeError: replace() takes at least 2 arguments (1 given)
How can I work around this?