code: def inverseDict(d):
  	
  	dt={}
  	for k,v in list(d.items()):
  		if type(v) in (list,tuple):
  			for i in v:
  				dt[i]=k
  		else:
  			dt[v]=k
  	return dt
docs: Returns a dictionay indexed by values {value_k:key_k}
  	Parameters:
  	-----------
  		d : dictionary