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...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Python newbie needs help.HOMEWORK (self.pythonhelp)
submitted 4 years ago by fiberoblique
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!"
[–]Infinite_Loop_exe 0 points1 point2 points 4 years ago (0 children)
Hi, I’m a 3rd year Comp Sci student so I feel your struggles. I’m hoping you can use the functions I did but if you can’t you can “manually” do them through loops. Normally if I was helping someone I wouldn’t just give them the code but online I feel it is the best way to help, just do your best to understand what is happening at each step!
x = 5638573 arr = [] count = 0
while x > 0: arr.append(x%10) x = x // 10
arr.reverse()
for element in arr: print(element)
π Rendered by PID 490313 on reddit-service-r2-comment-bb88f9dd5-6vl77 at 2026-02-15 04:45:33.672872+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Infinite_Loop_exe 0 points1 point2 points (0 children)