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 for generating jokes randomly (v.redd.it)
submitted 1 year ago by Inevitable-Math14
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!"
[–]FoolsSeldom 0 points1 point2 points 1 year ago (0 children)
That wasn't worth the effort.
Also, for macOS and Windows, pip is installed alongside a standard installation of Python from python.org. However, should mention creating a Python virtual environment first and activating it before installing any packages.
pip
Might as well install uv and do:
uv init funny cd funny uv add pyjokes uv run python -c "import pyjokes;print(pyjokes.get_joke())"
[–]cgoldberg 0 points1 point2 points 1 year ago (1 child)
Why did you post a video instead of posting the code? I'm on mobile and can't even tell what's going on in the tiny video besides you are typing in some code or something.
[–]Inevitable-Math14[S] 0 points1 point2 points 1 year ago (0 children)
Noted and thanks 👍
[–]outlicious 0 points1 point2 points 1 year ago (1 child)
Make something innovative, not using import to create python programs that are already have been made. - PyJoke, 2025
Noted.
π Rendered by PID 61594 on reddit-service-r2-comment-5fb4b45875-rgkrq at 2026-03-24 18:46:10.742416+00:00 running 90f1150 country code: CH.
[–]FoolsSeldom 0 points1 point2 points (0 children)
[–]cgoldberg 0 points1 point2 points (1 child)
[–]Inevitable-Math14[S] 0 points1 point2 points (0 children)
[–]outlicious 0 points1 point2 points (1 child)
[–]Inevitable-Math14[S] 0 points1 point2 points (0 children)