Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

At the end I chose to do it in the following way

K=[]
for a in range(len(S)):
     J=[]
     J.append(a^2+a)                                  #do what I need to do on the set J, this is a trivial example
     K.append(J)