I have been using python for a while and there is something that I'm missing.
When importing a module, is there any difference if the module contains a class, or just definitions. For example, i have the following two modules:
def hello():
print("hello")
Or
class Hello():
def hello():
print("hello")
And I import it from another module
import module_name
module_name.hello()
Or
import module_name
Hello = module_name.Hello()
Hello.hello()
Is there any difference in the code?
What if a want to make parallel execution? Would i have any issue if I just import the definition?