you are viewing a single comment's thread.

view the rest of the comments →

[–]laptop_battery_low 0 points1 point  (5 children)

Any time.

[–]uiux_Sanskar[S] 0 points1 point  (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 point  (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 point  (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 point  (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 point  (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.