Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.55K
~7K People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for pyguy25

Hey there, A much easier way is to use the modulus of 26, for example: -3 % 26 = 23. So your code will simply be: [code] def caesar_dec(message, key): ans = '' for i in message: ans += chr((((ord(i)-65)-key)%26) + 65) return ans print caesar_dec(raw_input(),int(raw_input()) [/code] Later. Daniel, South …

Member Avatar for FaZeSkwlSh00ter
0
7K

The End.