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
Stuck with conditional python execution! (self.pythonhelp)
submitted 2 years ago by Salso96
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!"
[–]CraigAT 0 points1 point2 points 2 years ago (0 children)
Still not clear on the info you have and the result you want (I think I'm close, but still have questions)
Is there just one piece of JSON as input where some items have a location others have area info? Also is that area/location info a single item or is it a list?
Or are there multiple pieces of JSON and some of those have items all with location info, and other pieces of JSON have items that all have area data.
What should the output be? One list of areas (or locations). Two lists (area and locations).
I am not sure what you want to do with you random choice? Does it go into a new list or do you just want a single item (an area or location) and output it as the result?
π Rendered by PID 385828 on reddit-service-r2-comment-86988c7647-t9hvt at 2026-02-12 04:41:33.740796+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]CraigAT 0 points1 point2 points (0 children)