Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=int(input())
- abc=' abcdefghijklmnopqrstuvwxyz'
- lst=[str(i) for i in input().strip()]
- Result=''
- for i in lst:
- Result += abc[(abc.index(i) + a) % len(abc)]
- print('Result: "{}"'.format(Result))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement