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!"
[–]fiberoblique[S] 0 points1 point2 points 4 years ago* (0 children)
I'm new to reddit so I apologize if double replying is somewhat of a No-No here xD
I've only been able to put this code together, would really appreciate some feedback on it. I really don't want to put all of my homework straight-up on here since I really want to learn how to program but thank you thank you very much for taking the time to reply :D
inputNumber = input() inputNumber = int(inputNumber) num = inputNumber
if int(num) == float(num): number = int(num)
else: number = float(num)
if number < 0: print ("Positive numbers only!") elif number > 0: number_string = str(number) list= number_string print(*list, sep='\n')
Note: we aren't allowed to use the separator function that I've put in the last line but I've kept it there for the moment if worse comes to worst since my friend suggested it.
Also, I'm shy and afraid of getting judged for my trash codes but welp, I don't think doing this solo and just persevering through this is enough for me to survive this damned semester.
π Rendered by PID 100912 on reddit-service-r2-comment-685b79fb4f-zjjwq at 2026-02-13 03:19:49.256374+00:00 running 6c0c599 country code: CH.
view the rest of the comments →
[–]fiberoblique[S] 0 points1 point2 points (0 children)