New to Python, Help to get script working?

Chris Angelico rosuav at
Mon Dec 16 08:43:54 CET 2013

On Mon, Dec 16, 2013 at 6:09 PM, Mark <markyshizzle at> wrote:
> Traceback (most recent call last):
>   File "C:\Python27\Scripts\", line 9, in <module>
>     numberOfViewers = int(sys.argv[1])
> IndexError: list index out of range
> Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers

In Python, sys.argv is the arguments passed to the script. You need to
pass it some arguments when you run it.


More information about the Python-list mailing list