On Wed, Apr 10, 2013 at 10:32 PM, Arijit Ukil <arijit.u...@tcs.com> wrote: > 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
Why not Python 2.7 or Python 3.3 ? > > python my_python.py 1 3 2 > > However I am getting error: No such file in the directory, Errno 21 Have you set the Windows Path variable correctly? Do you see IDLE in your programs menu? -Amit. -- http://amitsaha.github.com/ _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor