def prefix_unit(unit, prefixes):
 from sympy.physics.unitsystems.units import Unit
 prefixed_units = []
 for prefix in prefixes:
  prefixed_units.append(Unit(unit, abbrev=unit.abbrev, prefix=prefixes[prefix]))
 return prefixed_units

def prefix_unit ( unit , prefixes ) : from sympy . physics . unitsystems . units import Unit prefixed_units = [ ] for prefix in prefixes : prefixed_units . append ( Unit ( unit , abbrev = unit . abbrev , prefix = prefixes [ prefix ] ) ) return prefixed_units
return a list of all units formed by unit and the given prefixes .