Skip to main content

All Questions

Tagged with
29 votes
2 answers
73k views

Classes vs. modules in Python

Python has many modules (such as re) that perform a specific set of actions. You can call the functions of this module and get results, and the module as a whole has an idea behind it (in this case, ...
Pro Q's user avatar
  • 697
0 votes
1 answer
2k views

Setting up folders and importing modules in Python

I'm building an app to automate some processes that are annoying to do by hand (looking in a file, taking certain information out of a file, building another file with that information). My project ...
JBWeld's user avatar
  • 1
8 votes
5 answers
2k views

Python: What is the point of using "import"?

I am not very clear on this aspect. Let's say you have a bunch of .py files that are their own separate modules. Why does each .py file need to import the others when they use that class? Or do they? ...
Kaitlyn Mcmordie's user avatar