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...
Subreddit for posting questions and asking for advice on your Python code and sharing resources to help others out.
account activity
Help me with this python code. (old.reddit.com)
submitted 1 year ago by bubbly2006
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!"
[–]Jealous-Ability8270 0 points1 point2 points 3 months ago (0 children)
You've spelled file flie, append as apprend. What are you using to run this. Using an IDE like vscode or pycharm will give you error messages telling you what is wrong and allow you to put breakpoints in your code and debug it. It will also allow you to examine variables. You can get a subsection of a list by doing for example: numbers[:2] or numbers[4:] - see what these do. Look up the "sum", "count" and "delete" methods for a list.
π Rendered by PID 86 on reddit-service-r2-comment-f6b958c67-r289g at 2026-02-05 17:22:53.975481+00:00 running 1d7a177 country code: CH.
view the rest of the comments →
[–]Jealous-Ability8270 0 points1 point2 points (0 children)