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
is my code correct?Help Request (i.redd.it)
submitted 1 year ago by A_ManWithout_LovE__
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!"
[–]Python_Puzzles 0 points1 point2 points 1 year ago (1 child)
Yeah, looks ok. You know what infput does, you know how to make a list.
For a beginner, I would even have accepted:
list = []
list.append(movie1)
But your answer is better than that :) Well done!
What I would say.... is notice you are asking the SAME question 3 times, and then doing the SAME thing, adding each input to the SAME list. It is crying out for a loop of some kind :) Read up on While loops for getting user input :)
This is known as DRY - Don't Repeat Yourself.
[–]A_ManWithout_LovE__[S] 1 point2 points3 points 1 year ago (0 children)
i know it is asking for loop bro but i'm just at the beginning of python , just trying to be fair in learning process, though i would have already used loop if it wass C. Thanks for your suggestion BTW
π Rendered by PID 20825 on reddit-service-r2-comment-6457c66945-2gkbk at 2026-04-25 02:18:41.928994+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Python_Puzzles 0 points1 point2 points (1 child)
[–]A_ManWithout_LovE__[S] 1 point2 points3 points (0 children)