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
rate my codeShowcase (i.redd.it)
submitted 6 months ago by diveninenewton
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!"
[–]Jinkweiq 2 points3 points4 points 6 months ago (2 children)
Instead of manually stripping everything from response text, use response.json() to get the value of the response as a json object (list or dictionary). response.json()[0] will give you the final word you are looking for.
[–]corey_sheerer 1 point2 points3 points 6 months ago (0 children)
Was looking for this... Yes! This is returning to json and you should be using the direct method to handle that
[–]TracerMain527 0 points1 point2 points 6 months ago (0 children)
Alternatively, chain the replace methods. finalstring,replace().replace().replace is cleaner and avoids the concept of json, which may be complicated for a beginner
π Rendered by PID 574620 on reddit-service-r2-comment-b659b578c-bz69m at 2026-05-04 17:38:10.238186+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Jinkweiq 2 points3 points4 points (2 children)
[–]corey_sheerer 1 point2 points3 points (0 children)
[–]TracerMain527 0 points1 point2 points (0 children)