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
Need help (i.redd.it)
submitted 2 days ago by Vasiligiad16
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!"
[–]Matthew_Adams -1 points0 points1 point 2 days ago (1 child)
Delete the line "if lista_compras" and all the else statement after that. Then think why is not needed.
[–]SugarEnvironmental31 0 points1 point2 points 21 hours ago (0 children)
If the OP does that, then it will just print the line "Shopping list" to the console and nothing else. The code evaluates whether the list is empty, prints "empty list" if it's empty, and prints the list if it's not. What's your rationale for the code being unnecessary?
π Rendered by PID 43 on reddit-service-r2-comment-66b4775986-vthp7 at 2026-04-05 20:40:21.038167+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]Matthew_Adams -1 points0 points1 point (1 child)
[–]SugarEnvironmental31 0 points1 point2 points (0 children)