def dequote(string, dictionary):
        """Replace quoted parts of string with dictionary entries."""
        parts = string.split('"')
        parts[1::2] = [dictionary[word] for word in parts[1::2]]
        return ''.join(parts)
Replace quoted parts of string with dictionary entries.
recipes/Python/231347_String_substitution_shorty/recipe-231347.py