Skip to content

Conversation

@skleung
Copy link
Contributor

@skleung skleung commented Oct 13, 2015

No description provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's perhaps a more pythonic way using dict and zip instead of hardcoding

import string 
uppercase_letters = string.ascii_uppercase
caesar_encr = dict(zip(uppercase_letters, uppercase_letters[3:] + uppercase_letters[:3]))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants