code: def replace_all(text, replace_dict):
      
      for i, j in replace_dict.items():
          text = text.replace(i, j)
      return text
docs: Replace multiple strings in a text.
  
  
      .. note::
  
          Replacements are made successively, without any warranty on the order \
          in which they are made.
  
      :param text: Text to replace in.
      :param replace_dict: Dictionary mapping strings to replace with their \
              substitution.
      :returns: Text after replacements.
  
      >>> replace_all("foo bar foo thing", {"foo": "oof", "bar": "rab"})
      'oof rab oof thing'