Double-Caesar Cipher, Redux

This assignment is to be done with your teammate. Since it involves duplicating code from your previous assignment, choose one of your two submissions to use. Cite appropriately in program comments whose program you started with. The goal of this assignment (and the emphasis on grading) is not on the encryption/decryption itself, but rather on program structure.

Overview

One of the unsatisfying things (from a software design perspective) of the last cipher assignment is that you had to break up all your code into multiple programs. It seems that encoding and decoding should all be part of the same program, where each task is separated into its own appropriate subsection. That's what functions in Python are for, and here you'll redo the previous assignment but create your own functions.

Your assignment

In your cipher directory from your previous assignment, create a program called cipher.py. Write three functions within:

All code in your cipher.py file should exist inside of a function, with the exception of a single line at the bottom that calls the function main().

Have fun, and good luck!