You are viewing a single comment's thread. Return to all comments →
For begginers :
list_elem = [] for hor in range(x +1): for vert in range(y + 1): for diag in range(z + 1): if (hor + vert + diag) != n: elem = [] elem.insert(0,hor) elem.insert(1,vert) elem.insert(2,diag) list_elem.append(elem) print(list_elem)
List Comprehensions
You are viewing a single comment's thread. Return to all comments →
For begginers :