Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alph = 'ABCX'
- answ = 0
- for a in alph:
- for b in alph:
- for c in alph:
- for d in alph:
- for e in alph:
- s = a + b + c + d + e
- if s.count('X'):
- answ += 1
- print(answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement