Hypo Nt:

def each_with_index(seq):
    index = 0
    result = []

    for item in seq:
      result.append([item, index])
      index += 1

    return result

My Pythonic sequencing skills are obviously feeble. Can anything think
of a way to write that in fewer lines?

--
  Phlip
  http://c2.com/cgi/wiki?MoreliaViridis
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to