code: def takef(d,l,val=None):
      '''take(f) a list of keys and fill in others with val'''
      return {i:(d[i] if i in d else val)
              for i in l}f takef(d,l,val=None):
      '''take(f) a list of keys and fill in others with val'''
      return {i:(d[i] if i in d else val)
              for i in l};
docs: take(f) a list of keys and fill in others with val