Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a1 = int(input())
- a2 = int(input())
- n = int(input())
- for sym in range(a1, a2):
- charr = chr(sym)
- for sym2 in range(1, n):
- for sym3 in range(1, int(n / 2)):
- sym4 = ord(charr)
- sum = sym2 + sym3 + sym4
- if sym4 % 2 != 0 and sum % 2 != 0:
- print(f'{charr}-{sym2}{sym3}{sym4}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement