To import only one function with a given name : Import : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » Import »

 

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)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» Import