| 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) |
Last active
| 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) |