Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start_letter = input()
- end_letter = input()
- skip_letter = input()
- start_num = ord(start_letter)
- end_num = ord(end_letter)
- skip_num = ord(skip_letter)
- counter = 0
- for first in range(start_num, end_num + 1):
- for second in range(start_num, end_num + 1):
- for third in range(start_num, end_num + 1):
- if first == skip_num or second == skip_num or third == skip_num:
- continue
- else:
- counter += 1
- print(f"{chr(first)}{chr(second)}{chr(third)}", end=" ")
- print(counter)
Advertisement
Add Comment
Please, Sign In to add comment