How to use a function into "import function" in python
Dear sir, I defined a function " hit_rate( )" i want to use this into "import function(name of function)". For example: I defined a function as * def* hit_function(a,b,c): ......................... ,............................... ............................ * return* value Now I want to use this in another function as * def *test_hr( ): import hit_function(a, b, c) ....................... ,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,, *return* value1 Please help me to solve this problem. thanking you -- DILEEPKUMAR. R J R F, IIT DELHI
Fri, 08 Apr 2011 16:24:58 +0530, dileep kunjaai wrote:
I defined a function " hit_rate( )" i want to use this into "import function(name of function)".
Please read the Python tutorial first: http://docs.python.org/tutorial/ http://docs.python.org/tutorial/modules.html
On 4/8/2011 6:54 AM, dileep kunjaai wrote:
I defined a function " hit_rate( )" i want to use this into "import function(name of function)".
http://docs.python.org/tutorial/modules.html Alan Isaac
Thank you sir ........thank you for your quick and correct answer On Fri, Apr 8, 2011 at 5:52 PM, Alan G Isaac <alan.isaac@gmail.com> wrote:
On 4/8/2011 6:54 AM, dileep kunjaai wrote:
I defined a function " hit_rate( )" i want to use this into "import function(name of function)".
http://docs.python.org/tutorial/modules.html
Alan Isaac
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
-- DILEEPKUMAR. R J R F, IIT DELHI
participants (3)
-
Alan G Isaac
-
dileep kunjaai
-
Pauli Virtanen