title: How to write int array [0,1,2,...] in binary to a file using Python script
body: <p>I'm new to Python. I want to generate a 100K binary file. The file contents will be (in hex):</p>
  
  <pre class="lang-none prettyprint-override"><code>00000000 00000001 00000002 00000003
  00000004 00000005 00000006 00000007
  ...
  </code></pre>
  
  <p>I read some examples, but they all write a string to a text file. That's not what I want.</p>