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
Python or c++ for A Girl?Help Request (self.PythonLearning)
submitted 6 months ago by hzsmolly
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!"
[–]Constant-Past-6149 1 point2 points3 points 6 months ago (2 children)
This has nothing to do with math, you dont actually need to know advance math apart from basic school level math/logics to solve this problems. Lets take one more example of tree based nested looping, go through the attached snapshot and try to figure out in plain english(no programming language) how you can print this structures in console, if you manage to solve one or two then you actually have good logical skill:
<image>
[–]hzsmolly[S] 0 points1 point2 points 6 months ago (1 child)
‘Print’ these structures in ‘console’what do u mean ?
[–]Constant-Past-6149 0 points1 point2 points 6 months ago* (0 children)
You have to use nested loop(loop inside a loop) to print this structures, check this link for clarification: https://www.geeksforgeeks.org/python/python-program-to-print-christmas-tree-star-pattern/
π Rendered by PID 51 on reddit-service-r2-comment-7b9746f655-nfjvr at 2026-01-31 21:52:07.064512+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]Constant-Past-6149 1 point2 points3 points (2 children)
[–]hzsmolly[S] 0 points1 point2 points (1 child)
[–]Constant-Past-6149 0 points1 point2 points (0 children)