Re: I need help, again!
So back to school we go, and one of the things we're welcomed back to is rot_13. Can anyone give me tips on shortening down code and or tell me if I implemented it correctly?
Code goes below.
def rot_13(message):
message2 = ""
for i in message:
x = ord(i)
if x>=65 and x<=122:
x +=13
if x>122:
message2+=chr(65+(x-122))
else:
message2+=chr(x)
else:
message2+=chr(x)
print(message2)
Very basic, I know, it was easier then the original script this topic started with, but oh well... we start small, I guess.
Oh, and before I forget... Can anyone explain affine cipher? How does it work and such? Try to explain it as simply as possible, please...
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector