Skip to content

Instantly share code, notes, and snippets.

pw = (''.join(p) for i in range(3) for p in __import__('itertools').product(*((map(str,range(10)) if j==i else ('a','b')) for j in range(3))))
count = 1
for p in pw:
print(f"Вариант {count} - {p}")
count += 1