Ask Your Question

Revision history [back]

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)