Last active 1728394631

nithir's Avatar nithir revised this gist 1728394631. Go to revision

1 file changed, 9 insertions

loop.py(file created)

@@ -0,0 +1,9 @@
1 + from itertools import product
2 +
3 + list_a = [1, 2020, 70]
4 + list_b = [2, 4, 7, 2000]
5 + list_c = [3, 70, 7]
6 +
7 + for a, b, c in product(list_a, list_b, list_c):
8 + if a + b + c == 2077:
9 + print(a, b, c)
Newer Older