Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- posun = int(raw_input("Zadaj posun: "))
- text = raw_input("Zadaj text: ")
- E = []
- D = []
- for i in text:
- cislo = ord(i) - 65
- E.append(chr(((cislo + 3) % 26) + 65))
- D.append(chr(((cislo+(26-posun)) % 26) + 65))
- print "Encrypt: " + "".join(E)
- print "Decrypt: " + "".join(D)
Add Comment
Please, Sign In to add comment