Advertisement
nq1s788

Untitled

Sep 22nd, 2023
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. alph = 'ko'
  2. c = 0 #счетчик букв к
  3. for f in range(2):
  4.     if f == 0:
  5.         c += 1
  6.     for s in range(2):
  7.         if s == 1 and f == 1:
  8.             continue
  9.         if s == 0:
  10.             c += 1
  11.         for t in range(2):
  12.             if t == 1 and s == 1:
  13.                 continue
  14.             if c == 2 and t == 0:
  15.                 continue
  16.             print(alph[f] + alph[s] + alph[t])
  17.         if s == 0:
  18.             c -= 1
  19.     if f == 0:
  20.         c -= 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement