def only_given_keys(dictionary, keys):
  """
  Outputs a dictionary with the key:values of an
  original dictionary, but only with items whose
  keys are specified as a parameter.
  """
  res = dict(dictionary)
  for key in dictionary:
    if key not in keys:
      del res[key]
  return res