Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alf = ['Т', 'И', 'М', 'О', 'Ф', 'Е', 'Й']
- count = 0
- word = [0, 0, 0, 0, 0]
- for b1 in alf:
- word[0] = b1
- for b2 in alf:
- word[1] = b2
- for b3 in alf:
- word[2] = b3
- for b4 in alf:
- word[3] = b4
- for b5 in alf:
- word[4] = b5
- if 'Т' in word and word.count('Й') <= 1:
- count += 1
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment