when you run rot cipher pythe output will look like thisrot cipherby al sweigart al@inventwithpython com enter message to encrypt/decrypt (or quit)meet me by the rose bushes tonight the translated message iszrrg zr ol gur ebfr ohfurf gbavtug (copied to clipboard enter message to encrypt/decrypt (or quit)--snip-how it works rot shares lot of code with project "caesar cipher,although it' much simpler because it always uses the key since the same code performs both the encryption and decryption (lines to )there' no need to ask the player which mode they want to use one difference is that this program maintains the casing of the original message instead of automatically converting the message to uppercase for example"helloencrypts to "uryyb,whereas "helloencrypts to "ury yb """rot cipherby al sweigart al@inventwithpython com the simplest shift cipher for encrypting and decrypting text more info at view this code at tagstinycryptography"" try import pyperclip pyperclip copies text to the clipboard except importerror pass if pyperclip is not installeddo nothing it' no big deal set up the constants upper_letters 'abcdefghijklmnopqrstuvwxyz lower_letters 'abcdefghijklmnopqrstuvwxyz print('rot cipherby al sweigart al@inventwithpython com' print( while truemain program loop print('enter message to encrypt/decrypt (or quit):' message input('' if message upper(='quit' break break out of the main program loop rotate the letters in message by characters rot cipher