Hi all, If I have a list with key/value pair, how do I get the value of the key?
I'm working with this code snippet: >>> items = {'fees':[('status','pending'), ('timeout',60)], 'hostel':[('status', 'pending'), ('timeout','120')]} >>> print [items[i] for i in items.keys()] [[('status', 'pending'), ('timeout', '120')], [('status', 'pending'), ('timeout' , 60)]] >>> -- Odeyemi 'Kayode O. http://www.sinati.com. t: @charyorde
-- http://mail.python.org/mailman/listinfo/python-list