Advertisement
BbJLeB

02. Letters Combinations

Jun 6th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. # 02. Letters Combinations
  2.  
  3.  
  4. first = ord(input())
  5. second = ord(input())
  6. third =  ord(input())
  7. all_combination = 0
  8. i = 0
  9. for i in range(first , second + 1):
  10.     if i == third:
  11.         continue
  12.         i += first
  13.         all_combination +=1
  14.     k = 0
  15.     for k in range(first , second + 1):
  16.         if k == third:
  17.             continue
  18.             k += first
  19.             all_combination += 1
  20.         j = 0
  21.         for j in range(first , second + 1):
  22.             if j == third:
  23.                 continue
  24.                 j += first
  25.                 all_combination += 1
  26.  
  27.             print(f"{chr(i)} {chr(k)} {chr(j)} ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement