You are viewing a single comment's thread. Return to all comments →
reselt = [] for i in range(x + 1): for a in range(y + 1): for z in range(z + 1): if i + a + z != n: reselt.append([i, a, z]) print(reselt)
Seems like cookies are disabled on this browser, please enable them to open this website
List Comprehensions
You are viewing a single comment's thread. Return to all comments →
reselt = [] for i in range(x + 1): for a in range(y + 1): for z in range(z + 1): if i + a + z != n: reselt.append([i, a, z]) print(reselt)