79302325

Date: 2024-12-23 06:34:03
Score: 1
Natty:
Report link

How are you running the script? Do you include arguments in the run command? e.g. python script.py https://google.com? If you do not specify any arg, the list will be empty.

There is also the possibility for you only having one element inside the list, while Python starts indexes from 0.

This means, the first element of the argv list would be accessed through:

argv[0]
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How are you
  • Low reputation (0.5):
Posted by: Mario MateaČ™