Hi,
This code works but the output is 1 single array:
[ 10 - i - j for i in collect(0:9), j in collect(0:9) if 10- i - j > 0]
output:
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 8, 7, 6, 5, 4, 3, 2, 1, 7, 6, 5, 4, 3, 2, 1, 6, 5, 4, 3, 2, 1, 5, 4, 3, 2, 1, 4, 3, 2, 1, 3, 2, 1, 2, 1, 1]
How do I change it to be:
[[10,9,8,7,6,5,4,3,2,1],[9,8,7,6,5,4,3,2,1],[8,7,6,5,4,3,2,1],[7,6,5,4,3,2,1],[6,5,4,3,2,1],[5,4,3,2,1],[4,3,2,1],[3,2,1],[2,1],[1]]
What am i not doing correct?
best,