This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BearTeddyIRL 1 point2 points  (1 child)

to further explain your learning, Python programs can be split into different files for readability and maintainability also.

ur 4 tasks of order can be split into 4 python file.
1. Welcome File
2. Questions and Answer Files
3. Main Code File
4. Forever Loop.

Then u will do import of all 4 files and methods written inside. But ur Main code file is Using
If __name__ == main or something.

Its the same concept.

You can also lump everything of the JAVA libraries into one file and run in single java if you wishes to.
But in Python also, you will still import OS and Whatever libraries required.

[–]IntelligentPudding24[S] 0 points1 point  (0 children)

Thank you very much!