Hi all,
I have been struggling with the code correspondacne project and managed to get very nearly there on the first question. However my code appears to be returning extra characters and i dont know why!!
If any one can help me understand what is going on and why that would be so so amazing.
My current code and the values it returns are below:
My code:
Returned output:
The length of the coded message is 133 characters.
The length of the de-coded message is 165 characters.
hey ythere!e ethis sis san nexample eof fa acaesar rcipher.r rwere eyou uable eto odecode eit?t ti ihope eso!o osend dme ea amessage eback kwith hthe esame eoffset!t
[‘x’, ‘u’, ‘o’, ’ ', ‘o’, ‘j’, ‘x’, ‘u’, ‘h’, ‘u’, ‘!’, ‘u’, ’ ', ‘u’, ‘j’, ‘x’, ‘y’, ‘i’, ’ ', ‘i’, ‘y’, ‘i’, ’ ', ‘i’, ‘q’, ‘d’, ’ ', ‘d’, ‘u’, ‘n’, ‘q’, ‘c’, ‘f’, ‘b’, ‘u’, ’ ', ‘u’, ‘e’, ‘v’, ’ ', ‘v’, ‘q’, ’ ', ‘q’, ‘s’, ‘q’, ‘u’, ‘i’, ‘q’, ‘h’, ’ ', ‘h’, ‘s’, ‘y’, ‘f’, ‘x’, ‘u’, ‘h’, ‘.’, ‘h’, ’ ', ‘h’, ‘m’, ‘u’, ‘h’, ‘u’, ’ ', ‘u’, ‘o’, ‘e’, ‘k’, ’ ', ‘k’, ‘q’, ‘r’, ‘b’, ‘u’, ’ ', ‘u’, ‘j’, ‘e’, ’ ', ‘e’, ‘t’, ‘u’, ‘s’, ‘e’, ‘t’, ‘u’, ’ ', ‘u’, ‘y’, ‘j’, ‘?’, ‘j’, ’ ', ‘j’, ‘y’, ’ ', ‘y’, ‘x’, ‘e’, ‘f’, ‘u’, ’ ', ‘u’, ‘i’, ‘e’, ‘!’, ‘e’, ’ ', ‘e’, ‘i’, ‘u’, ‘d’, ‘t’, ’ ', ‘t’, ‘c’, ‘u’, ’ ', ‘u’, ‘q’, ’ ', ‘q’, ‘c’, ‘u’, ‘i’, ‘i’, ‘q’, ‘w’, ‘u’, ’ ', ‘u’, ‘r’, ‘q’, ‘s’, ‘a’, ’ ', ‘a’, ‘m’, ‘y’, ‘j’, ‘x’, ’ ', ‘x’, ‘j’, ‘x’, ‘u’, ’ ', ‘u’, ‘i’, ‘q’, ‘c’, ‘u’, ’ ', ‘u’, ‘e’, ‘v’, ‘v’, ‘i’, ‘u’, ‘j’, ‘!’, ‘j’]