I have been trying the following, as suggested by many post, but I am still getting
ValueError: invalid literal for int() with base 10: 'gap_interval.py'. What am I missing?
import sys
if __name__ == '__main__':
n = 4
a = []
for i in sys.argv:
print int(i.strip())
gap_interval.pyis not a string. It is also part of sys.argv which it's telling you.