It looks like you're new here. If you want to get involved, click one of these buttons!
import module1.py
from module1.py import *
# module1.py
def print_stuff(): print('stuff\n')
# main.py - test use of module: module1
import module1
module1.print_stuff() # call print_stuff from the module1 namespace
# main.py - test use of module: module1
from module1 import print_stuff # import print_stuff to current namespace
# from module1 import * # import everything to current namespace
print_stuff()