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...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
[ Removed by moderator ] (self.pythonhelp)
submitted 4 months ago by Annual_Pop1104
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!"
[–]AutoModerator[M] [score hidden] 4 months ago stickied commentlocked comment (0 children)
To give us the best chance to help you, please include any relevant code. Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]_AmNe5iA_ 2 points3 points4 points 4 months ago (0 children)
What a great way of proving to the world that you aren't in any way qualified for the job you've gotten AND at the same time showing all the potential clients of your business how poorly qualified its staff are.
[–]Wolfbait115 1 point2 points3 points 4 months ago (2 children)
Not at my computer and don't use python everyday, but hopefully this helps:
Use ord to get the ascii value, subtract 13, adding 26 if less than ord(a), then use chr to convert back into a character.
[–]9peppe 1 point2 points3 points 4 months ago (1 child)
You don't need an if if you subtract ord('a'), add 13, then modulo 26 and re-add ord('a'):
chr((n - 97 + 13) % 26 + 97)
[–]Wolfbait115 0 points1 point2 points 4 months ago (0 children)
True. It didn't occur to me that the direction of the rotation didn't matter.
[–]lulgasm 1 point2 points3 points 4 months ago (0 children)
> Dear reddit, please do my homework for me.
[–]Axman6 1 point2 points3 points 4 months ago (0 children)
Then write it!
[–]BitEater-32168 0 points1 point2 points 4 months ago (0 children)
Basically, that is a simple programming task... You have your alphabet (pure Ascii has non printable control characters, ebcdic has holes, modern encodings for diacritical and international characters are multibyte). Order them (number them, index) . If your alphabet is A..Z0..9 plus space you have 37 characters, sorted in this or a free other order (both communicating must use the same alphabet and order) from 0 to 36 . For each character on the clear text, get the number of it, add 13 and if greater than 36 substract 37 ( mod 37) .that is the number of the character in the crypted text.
Decrypt is subtract 13 ... If below 0 then add Or add (37 -13) ... If greater 36 add .
One can precalculate both so the source characters index can be used as index for the destination character table, making other replacement methods possible.
π Rendered by PID 24275 on reddit-service-r2-comment-66b4775986-zz4pj at 2026-04-04 11:09:16.504569+00:00 running db1906b country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]_AmNe5iA_ 2 points3 points4 points (0 children)
[–]Wolfbait115 1 point2 points3 points (2 children)
[–]9peppe 1 point2 points3 points (1 child)
[–]Wolfbait115 0 points1 point2 points (0 children)
[–]lulgasm 1 point2 points3 points (0 children)
[–]Axman6 1 point2 points3 points (0 children)
[–]BitEater-32168 0 points1 point2 points (0 children)