On 05/08/06, anil maran <anilmrn at yahoo.com> wrote: > list comprehensions to return a dictionary Well, hyou can use the dict function. eg: dict((x, x**x) for x in range(10)) -- John.