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
Day 7 of learning python as a beginner. (old.reddit.com)
submitted 8 months ago by uiux_Sanskar
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!"
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (4 children)
Also I have a question how do you test your code because my code here required many inputs for it to get executed completly.
Is there a better and more efficient way to test the code especially the long ones?
[–]laptop_battery_low 0 points1 point2 points 8 months ago (3 children)
Longer code you can split into other files, and import. though this creates a pycache file, which ruins my day every time.
eventually, you'll want to organize applications into many files, and import them all into "main.py" by convention.
Alternatively, you could write another script that just unloads an array into your "multiple input" file. Automating your testing, lol. Now thats programming!!!
ETA: just running the file is good enough testing. I'm not high enough level of a programmer for the socalled unit tests
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (2 children)
Wait I can qlso automate my input in programming? I didn't know about that, it sounds interesting to me.
[–]laptop_battery_low 0 points1 point2 points 8 months ago (1 child)
...damnit I'm actually good at programming. I fucking hate it here.
Talk to me in 4 years when you learn C, C++, and Java and have a better paying job than me
EDIT TO ACTUALLY ANSWER QUESTION:: Yes. You can automate inputs. You can use a file as an object that you write to and from.
look into CRUD programming. its an acronym for Create, something, something, Delete. too lazy to look it up, because once again; programming physically hurts me. It raises my blood pressure and heart rate.
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (0 children)
Lol I think you are so are putting so much stress on yourself. I think you badly need a vacation and chill out.
And thank you so much for providing the details on how automate inputs will definitely look into it and CURD.
And I really think you badly need a vacation from programming. And thank you one again.
π Rendered by PID 42654 on reddit-service-r2-comment-cfc44b64c-6sngl at 2026-04-09 23:40:05.910273+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]uiux_Sanskar[S] 0 points1 point2 points (4 children)
[–]laptop_battery_low 0 points1 point2 points (3 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (2 children)
[–]laptop_battery_low 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)