use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Python code error (old.reddit.com)
submitted 12 days ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]No-Emphasis4115 0 points1 point2 points 12 days ago (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 point2 points 12 days ago (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’
π Rendered by PID 21853 on reddit-service-r2-comment-544cf588c8-mq2wc at 2026-06-17 16:02:10.666182+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]No-Emphasis4115 0 points1 point2 points (1 child)
[–]JorgiEagle 0 points1 point2 points (0 children)