Mega Code Archive

 
Categories / Python Tutorial / Statement
 

To import only one function with a given name

# After  using 'from module  import function', you can use the  function without its module prefix. from math import sqrt  print sqrt(9)