On Wed, Sep 21, 2016 at 4:04 AM, Ganesh Pal <ganesh1...@gmail.com> wrote: > 1. store it in list and grep for id and return > 2. store it in dict as key and value i.e hostname = { 'hostname1': 1} and > return key > 3. any other simple options.
4. Store it in dict, but the other way around. The key should be the thing you want to look up; the value, the thing you want to find out. ChrisA -- https://mail.python.org/mailman/listinfo/python-list