Created
January 23, 2016 21:24
-
-
Save hmurraydavis/e03c51e534d53a311148 to your computer and use it in GitHub Desktop.
Cesar Shift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message = raw_input('Message to code is: ') | |
shift_value = 1 | |
newMessage = '' | |
for letter in message: | |
letter = ord(letter) + shift_value | |
newMessage = newMessage + chr(letter) | |
print 'Message is: ', newMessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment