Python Tip #8 – reducing looping by using dicts

In situations where you have a list of objects and have to retrieve then in random order, dictionaries can act as lookup tables. This tip is not very obvious, hence this explanation: This method employs a iterator looping through the list of users every time we have to find a user, which means we have…… Continue reading Python Tip #8 – reducing looping by using dicts