[Tutor] passing variable to python script

Eric Walker ewalker at micron.com
Fri Oct 14 01:18:41 CEST 2005


z = raw_input("Please Enter? :\n")
On Thursday 13 October 2005 05:09 pm, Marc Buehler wrote:
> hi.
>
> i want to pass an argument (a number) to a python
>
> script when running it:
> > python script.py <number>
>
> i want to be able to use <number> within script.py
> as a parameter.
>
> how do i set this up?
>
> marc
>
>
> ---------------------------------------------------------------------------
>------------ The apocalyptic vision of a criminally insane charismatic cult
> leader
>
>    http://www.marcbuehler.net
> ---------------------------------------------------------------------------
>-------------
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list