def encrypt(letter): return chr(ord(letter) + 1) def decrypt(letter): return chr(ord(letter) - 1) plain_text = input("Type text to be encrypted: ") encrypted_text = "" for letter in plain_text: encrypted_text = encrypted_text + encrypt(letter) print(encrypted_text) plain_text = "" for letter in encrypted_text: plain_text = plain_text + decrypt(letter) print(plain_text) print(ord("A"),ord("a"))