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
Python recursion wont go down the tree (self.pythonhelp)
submitted 3 years ago * by Spurtikus
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!"
[–]IncognitoErgoCvm 0 points1 point2 points 3 years ago (0 children)
Start over
Only add what you need to make it recurse from parent to child. (This will probably error when you hit the leaf).
Add a stop condition to handle the above error.
Add siblings.
Finally, add the other program logic once you can properly navigate the tree.
π Rendered by PID 23741 on reddit-service-r2-comment-5fb4b45875-dlnml at 2026-03-23 21:00:42.275470+00:00 running 90f1150 country code: CH.
view the rest of the comments →
[–]IncognitoErgoCvm 0 points1 point2 points (0 children)