python - When I create list A and then separate it with list C, then I cannot add list D -


a=11  b=21  a=[]  n=10  y in range (11,b):      x in range (1,a):          a.append(x*y)  in range (a-1):      c=a[i*n:(i+1)*n]      d=a[i*n]      print(d+c) 

as far can see:

c list, while d element list unless list of lists.

you can

d=[a[i*n]] 

that make d list of single element


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -