Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. a=str(input("Enter a plaintext"))
  2. n=int(input("Enter the value of n"))
  3. c=list(a.split(" "))
  4. for x in c:
  5. asci=ord(x)
  6. ct=asci+n
  7. print(chr(ct))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement