[Tutor] Running python from windows command prompt

Arijit Ukil arijit.ukil at tcs.com
Wed Apr 10 14:32:47 CEST 2013


I like to run a python program "my_python.py" from windows command prompt. 
This program ( a function called testing) takes input as block data (say 
data = [1,2,3,4] and outputs processed single data. 

import math 

def avrg(data): 
    return sum(data)/len(data) 

def testing (data): 
    val = avrg(data) 
    out = pow(val,2) 
    return out 

I am using python 2.6. My intention is to run from windows command prompt 
as

python my_python.py 1 3  2

However I am getting error: No such file in the directory, Errno 21

Pls help.

Regards,
Arijit Ukil
Tata Consultancy Services
Mailto: arijit.ukil at tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.   IT Services
                        Business Solutions
                        Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130410/fc597c87/attachment.html>


More information about the Tutor mailing list