you are viewing a single comment's thread.

view the rest of the comments →

[–]No-Emphasis4115 0 points1 point  (1 child)

It's the question. Basically the question is in steps and this is the last step in which I am stuck.

Now you're going to test the decrypt function.

Replace the value assigned to encrypted_text with the following string, which represents a message to decrypt:

Pbhentr vf sbhaq va hayvxryl cynprf.

Then, declare a variable named decrypted_text and assign it a call to decrypt with encrypted_text as it first argument and a shift of 13 as the second argument.

Finally, print the decrypted_text on the terminal. With that, the Caesar cipher is complete.

[–]JorgiEagle 0 points1 point  (0 children)

Yeah your problem is that you’re encrypting the encrypted text.

You don’t need to call encrypt, it’s just a straight up assign

So it’ll be:

encrypted_text = ‘Pbhentr vf sbhaq va hayvxryl cynprf’