To give you an idea of what i'm talking about. This is the code i have now:
chrs = 'ABCDEF1234567890'
with open('two.txt', 'w') as two:
for xs in itertools.product(chrs, repeat=10):
h = sum(x.isalpha() for x in xs)
if h == 2: two.write(''.join(xs) + '\n')
Unfortunately this literally takes days as it creates every possible combination, most of which do not match.
EDIT: To clarify, i need a way of finding all possible combinations of the variable chrs where there are only two letters ('ABCDEF'). Without creating an entire list of all combinations and checking each one. I need to create just the ones that have two letters in them.
To go even further:
'AA12345678' = Good
'1234A123A4' = Good
'AAA1234567' = Bad
'A123456789' = Bad
I really don't know how much more i can explain just 5 lines of python code.