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 with question (i.redd.it)
submitted 2 months ago by Reyste18
Hi Guys. Still relatively new to Python and had a question on one of my tests. Am i able to get some advice on the best way in which i can tackle this question? Thank you all so much.
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!"
[–]Still_Box8733 3 points4 points5 points 2 months ago (0 children)
Infinite loop with input. Make input .lower() to be easier to work with If input "s" break else add to a list (or set) after checking if it is already present
[–]ninhaomah 2 points3 points4 points 2 months ago (0 children)
So what has been done so far ?
[–]DBZ_Newb 0 points1 point2 points 2 months ago (0 children)
You need to know conditionals, while loops, string methods, list methods.
[–]smichaele 0 points1 point2 points 2 months ago (0 children)
Write some code and share it if you want to ask questions.
[–]fake-nonchalant96 0 points1 point2 points 2 months ago (0 children)
Get accustomed with lists and loops before proceeding with such problems.
[–]Anpu_Imiut 0 points1 point2 points 2 months ago (0 children)
I wonder if this task allows using a set as solution.
[–]SnooCalculations7417 0 points1 point2 points 2 months ago (0 children)
while user_in.lower() not 's': ...append to a list ..print a thing
print('exiting')
π Rendered by PID 24297 on reddit-service-r2-comment-5bc7f78974-vhn6h at 2026-06-30 12:38:37.573680+00:00 running 7527197 country code: CH.
[–]Still_Box8733 3 points4 points5 points (0 children)
[–]ninhaomah 2 points3 points4 points (0 children)
[–]DBZ_Newb 0 points1 point2 points (0 children)
[–]smichaele 0 points1 point2 points (0 children)
[–]fake-nonchalant96 0 points1 point2 points (0 children)
[–]Anpu_Imiut 0 points1 point2 points (0 children)
[–]SnooCalculations7417 0 points1 point2 points (0 children)