Advertisement
nq1s788

8(один икс с count)

Jan 6th, 2024
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. alph = 'ABCX'
  2. answ = 0
  3. for a in alph:
  4.     for b in alph:
  5.         for c in alph:
  6.             for d in alph:
  7.                 for e in alph:
  8.                     s = a + b + c + d + e
  9.                     if s.count('X'):
  10.                         answ += 1
  11. print(answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement