title: python fn = sys.argv[1] meaning in code (spyder)
body: <p>I'm currently learning Python in spyder software and was just wondering (In reference to my example below) in simplified terms what the sys.argv[1] represents. Is it simply asking for an input?</p>
  <pre><code>    import sys
  
      fn = sys.argv[1]
  
      filename = os.path.split(fn)[-1].split(&quot;.&quot;)[0]
      filepath = os.path.split(fn)[0]
  
      src = cv2.imread(fn)
      # read the image```
  
  &gt;IndexError: list index out of range
  </code></pre>