30
Объяснение:
b=[]
for q in ['1','2','3','1','2']:
for w in ['1','2','3','1','2']:
for e in ['1','2','3','1','2']:
for r in ['1','2','3','1','2']:
for t in ['1','2','3','1','2']:
f=q+w+e+r+t
if f.count('1')==2 and f.count('2')==2 and f.count('3')==1:
b.append(f)
print(len(set(b)))
30
Объяснение:
b=[]
for q in ['1','2','3','1','2']:
for w in ['1','2','3','1','2']:
for e in ['1','2','3','1','2']:
for r in ['1','2','3','1','2']:
for t in ['1','2','3','1','2']:
f=q+w+e+r+t
if f.count('1')==2 and f.count('2')==2 and f.count('3')==1:
b.append(f)
print(len(set(b)))