Probably you didn't provide an argument on the command line. In that case,
sys.argv only contains one value, but it would have to have two in order to provide values for both
.Try something like this below:
script, one, two = argv
print "My file is:", script
print "My first entry is:", one
print "My second entry is:", two
I hope you get the point. So, fix the error this way and try to run the program again. Let me know if it works or not. If works, leave a kudos.
You are welcome.