MODULE USAGE SAMPLES

different ways how to import a module:

import moduleName
from moduleName import objectName
from moduleName import *

different usage of imported elements:

#import a module
import string
x = ' hello '
print string.strip(x)

#import a function from a module
from string import strip
x = ' hello2 '
print strip(x)