Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 02. Letters Combinations
- first = ord(input())
- second = ord(input())
- third = ord(input())
- all_combination = 0
- i = 0
- for i in range(first , second + 1):
- if i == third:
- continue
- i += first
- all_combination +=1
- k = 0
- for k in range(first , second + 1):
- if k == third:
- continue
- k += first
- all_combination += 1
- j = 0
- for j in range(first , second + 1):
- if j == third:
- continue
- j += first
- all_combination += 1
- print(f"{chr(i)} {chr(k)} {chr(j)} ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement