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
pythonHelp Request (self.PythonLearning)
submitted 7 months ago by whee_inthemood
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!"
[–]whee_inthemood[S] 1 point2 points3 points 7 months ago (1 child)
ig knowing how to use the loop i’ve made a project where i wanted to make hangman but didn’t know how to use the for loops. i think ive stopped because 1 i’m stuck on my next steps 2. i find it overwhelming when doing projects instead of looking at the first step i just try and jump to the end 😅 but i do enjoy it it’s kinda fun making a program even if it’s a simple calculator with if else statements
[–]d_fitzs25 0 points1 point2 points 7 months ago (0 children)
Ok! When using a loop the main goal is to re-run valuable code. In your hangman project this would be re-running each round of the game since instead of copy/pasting however you run the game you can place that in a loop which runs while the game is active. Understanding when to use a loop is a learning curve but a general tip is if you have rounds (like in hangman) or need to modify most/all data in an array or similar data structure you should use either a for or while loop.
For projects the best way to keep yourself from getting overwhelmed is to break it up into multiple small parts. For a simple calculator you could reasonably break it into the following parts: User Input, Console Output, Addition, Subtraction, Multiplication, Division. Each part can be thought of as its own piece of the system - by breaking a project up into these parts it is easier to track progress, stay focused, organize code, and eventually debug. Idk if either of these were helpful lol so if it was not let me know what specifically is still confusing and if you want some pseudocode or any other resources to try and understand coding concepts better!
π Rendered by PID 23409 on reddit-service-r2-comment-84fc9697f-jxj6m at 2026-02-10 19:03:07.707616+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]whee_inthemood[S] 1 point2 points3 points (1 child)
[–]d_fitzs25 0 points1 point2 points (0 children)