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

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

minify - Minimizing css files -

php - How to remove letter in front of the word laravel -