Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first = input()
- second = input()
- def solve():
- result = ''
- for i in range(ord(first) + 1, ord(second)):
- result += f'{chr(i)} '
- return result
- print(solve())
- Решение с map() и join():
- first = input()
- second = input()
- def solve():
- return ' '.join(map(chr, range(ord(first) + 1, ord(second))))
- print(solve())
- Или:
- def solve():
- return ' '.join(map(chr, range(ord(input()) + 1, ord(input()))))
- print(solve())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement