#!/usr/bin/env python import samplelib # <1> samplelib.spam() # <2> samplelib.ham()
#!/usr/bin/env python # Import functions spam and ham from samplelib module into current namespace # Does not create the module object from samplelib import spam, ham # Module name not needed to call function spam() spam() ham()