To import only one function with a given name : import « Statement « Python Tutorial






# After using 'from module import function', you can use the function without its module prefix.

from math import sqrt 
print sqrt(9)








3.12.import
3.12.1.To import only one function with a given name
3.12.2.Importing Something As Something Else
3.12.3.Modules can be imported directly using the package or module name.
3.12.4.namespace should be named something different.
3.12.5.import module vs. from module import