It is exhausting to repeat the word “import” like sending data from modules one by one
So i really want to get all .py modules at once (send data to all modules quickly) with creating a variable named pyModules (gets all python modules)
# module 1
def sendData(text: str) -> None:
import pyModules # does not import the module, sends something
return text.pyModules # Will not give the error
sendData("Apple ")
# module 2
print(str(module1.sendData) + str("Banana") # Automatic importing
Output on module 1
‘Apple Banana’