title: Python script, syntax error, invalid syntax
body: <p>I have the following python script which i want to run..
  However, it keeps showing the error message on my command prompt whenever i attempt to run the script.
  Error message: </p>
  
  <pre><code>File "xor.py", line 9
                 File = open(sys.argv[1], 'rb').read&lt;&gt;
                 SyntaxError: Invalid Syntax
  </code></pre>
  
  <p>The following is the command i executed in cmd:</p>
  
  <pre><code>python xor.py sample_output.txt 'what would the secret be?'
  </code></pre>
  
  <p>The following is the script:</p>
  
  <pre><code># xor.py
  import sys
  from itertools import cycle
  file = open(sys.argv[1], 'rb').read()
  string = sys.argv[2]
  sys.stdout.write(''.join(chr(ord(x)^ord(y)) for (x,y) in zip(file, cycle(string))))
  </code></pre>