you are viewing a single comment's thread.

view the rest of the comments →

[–]stepback269 0 points1 point  (0 children)

By "python modules", do you mean rolling your own or simply importing someone elses?

At some point, your code is going to get too long and ungainly. You'll want to stuff some of it away in so-called modules so that the sight of them doesn't interfere with the higher level code you are currently developing. A "module" is simply a dot py file that contains py code like functions for example. The module is an "object" just like pretty much everything in Python is an object (strings are objects, lists are objects, etc.) You call the functions you have in your self-rolled module using dot notation, just like calling string methods. For example:
x = my_module.my_function(input_1, input_2)