Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- L = int(input())
- for first_char in range(1, n + 1):
- for second_char in range(1, n + 1):
- for thirth_char in range(97, 97 + L):
- for forth_char in range(97, 97 + L):
- for fifth_char in range(1, n + 1):
- if first_char < fifth_char > second_char:
- print(f"{first_char}{second_char}{chr(thirth_char)}{chr(forth_char)}{fifth_char}", end = " ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement