From 6b62b0efb0b040c7d26ff0498314f8df134b3b3c Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Mon, 9 Feb 2026 12:50:41 +0500 Subject: [PATCH] 8 --- 8.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 8.py diff --git a/8.py b/8.py new file mode 100644 index 0000000..774615b --- /dev/null +++ b/8.py @@ -0,0 +1,13 @@ +from itertools import product, combinations, count + +# Генерируем все пары из двух списков +for x in product([1,2], repeat=1): + print(x) + + +from itertools import product +print(*(list(product('ЛНРТ', repeat=5))[149])) + + +from itertools import product +print([''.join(p) for p in product('ЛНРТ', repeat=5)][149]) \ No newline at end of file