Jan-11-2019, 07:50 PM
(Jan-11-2019, 07:44 PM)giveen Wrote: return items[aliases[item]]That's different from what you're doing, though. In this version, you're getting one particular item out of the aliases (this time, aliases is probably a dict though), and using the value from aliases as a key/index to
items
, instead of using the whole aliases list as the index.