Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. secret = 17
  2. nessage = "hello world"
  3.  
  4. output = ""
  5.  
  6. for character in message:
  7.     if character in alphabet:
  8.         output = output + encode(character, secret)
  9.     else:
  10.         output = output + character
  11.        
  12. print(output)
  13.    
  14. secret = 17
  15. message = "yvååc kcfåu"
  16. output = ""
  17.  
  18. for character in message:
  19.     if character in alphabet:
  20.         output = output + decode(character, secret)
  21.     else:
  22.         output = output + character
  23.        
  24. print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement