So, what I'm seeing is that the code passed all the tests except the ones with non-alpha characters like numbers, punctuation and spaces?
Hmmm.... I wonder what the problem could be. ;-)
Also, since caesar is only supposed to take a number as a key, why does it check for alphas? It only needs to check that the key is composed of digits.
On a side note, the code sure seems to have a lot of variables. I don't understand why it creates so many variables that are just copies of other variables when you could just use the originals. Having all the duplicate vars is inefficient and makes for very difficult code to read.
There's a lot of room to make this code a lot simpler.
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)