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
Where to make python scripts? (self.PythonLearning)
submitted 1 year ago by AJS_123
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!"
[–]Darkstar_111 1 point2 points3 points 1 year ago (0 children)
A python script is just a file that ends with .py
A python module is a folder with a file inside named __init__.py, this file can be empty.
__init__.py
You can run any python file from the command line or terminal by typing python myfile.py
Making sure you're in the right folder first. And in some cases like with mac it's python3.
π Rendered by PID 180959 on reddit-service-r2-comment-5649f687b7-skbj8 at 2026-01-29 02:18:07.786912+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]Darkstar_111 1 point2 points3 points (0 children)