So, i have a itchy question about import ModuleName
and where i should to put this operator. In a start of file or in a function?
import some_module
def main():
some_module.SomeStuff()
Or:
def main():
import some_module
some_module.SomeStuff()
But if i'll use it in more than one function? Will this correct or stupid? Or i need to create class with __init__
function like this: self.module = some_module.SomeStuff()
? And then call it in other functions under a class?