daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #encode
  2. #alvarolopez
  3.  
  4.  
  5. message=input("enter a message to encode or decode: ")
  6. message=message.upper()
  7. value=("")
  8. value2=("")
  9. for letter in message:
  10.         value=ord(letter)+1
  11.         value2=value2+chr(value)
  12.         if not letter.uppercase():
  13.             value=value-26
  14.             letter=chr(value)
  15. print(value2)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top