Posts by Francisco Gerson • 61 points
3 posts
-
1
votes0
answers47
viewsQ: How to create sublists by obeying the cell connection in a matrix
Friends, I am trying to create sublists from a matrix to segment cells that are connected, such as the matrix below: From this matrix I get this list with the painted cells: lista = [[1, 1], [2, 1],…
-
1
votes1
answer148
viewsQ: How to create sublists with pairs of elements (x,y), in which the first of them (x) is in a sequence?
Friends, imagine a list of pairs of elements (x,y): lista = [(13, 38), (14, 35), (14, 36), (15, 33), (15, 34), (15, 35), (15, 36), (18, 31), (18, 32), (19, 33), (22, 34), (22, 29), (23, 30), (23,…
-
1
votes2
answers811
viewsQ: How to create sublists with numerical elements that are in a sequence?
Friends, imagine a list: lista = [1, 2, 2, 3, 3, 3, 6, 6, 7, 11, 12, 12, 13, 14, 14] Could I create sublists only with the elements that are in sequence? For example, in this case it would be: lista…