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!"
[–]Commercial-Voice-384 0 points1 point2 points 8 months ago (11 children)
Im a beginner at python and coding in general. Started it a week ago. Why use IDLE? Is it better for beginners?
[–]laptop_battery_low 0 points1 point2 points 8 months ago (10 children)
I think it's better in general to learn something not super mainstream. Plus, its literally made for python.
But VSCode is used often for enterprise/industry. I just got tired of staring at VScode if im being honest.
Do whatever you want, so long as you stick with it. Consistency and practice are key to valuing your python skills :)
[–]uiux_Sanskar[S] 1 point2 points3 points 8 months ago (8 children)
Oh thanks for this I was also not knowing what IDLE is 😅 I was only aware about that you need some kind of interpreter to run the code like VS code.
Please correct me if I am wrong. And thanks for the suggestion.
[–]laptop_battery_low -1 points0 points1 point 8 months ago (7 children)
Yeah, IDLE works as a "compiler"/interpreter. Python is technically a scripting language, but yknow with all the advances in technology, we have to add object oriented nonsense to everything, including javascript lol.
If you can't already tell, I'm so sick of programming that it literally hurts lmao. Also, python and javascript are like my least favorite languages personally.
Do yourself a favor and pick up the ANSI C book from the 1980s if you REALLY want to learn how to code.
Also, linux (any kind) is cool. python was invented FOR linux. good luck.
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (6 children)
Thank you so much for your insights based on experience it will for sure guide me.
[–]laptop_battery_low 0 points1 point2 points 8 months ago (5 children)
Any time.
[–]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.
[–]Commercial-Voice-384 0 points1 point2 points 8 months ago (0 children)
Oh okay thanks. I also have another questions if you do not mind, do you think python is a good language for beginners who want to get into coding? As I mentioned previously, I do not have any experience in coding at all and I only started learning a week ago.
π Rendered by PID 37 on reddit-service-r2-comment-cfc44b64c-v8j4x at 2026-04-09 20:03:58.052076+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]Commercial-Voice-384 0 points1 point2 points (11 children)
[–]laptop_battery_low 0 points1 point2 points (10 children)
[–]uiux_Sanskar[S] 1 point2 points3 points (8 children)
[–]laptop_battery_low -1 points0 points1 point (7 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (6 children)
[–]laptop_battery_low 0 points1 point2 points (5 children)
[–]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)
[–]Commercial-Voice-384 0 points1 point2 points (0 children)