New to Python, Help to get script working?
Chris Angelico
rosuav at gmail.com
Mon Dec 16 02:43:54 EST 2013
On Mon, Dec 16, 2013 at 6:09 PM, Mark <markyshizzle at gmail.com> wrote:
> Traceback (most recent call last):
> File "C:\Python27\Scripts\Twitch.py", 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.
ChrisA
More information about the Python-list
mailing list