title: Using struct.pack with strings
body: <p>I'm trying to use the struct.pack so I can write a string into a file. When I do, I get the following error:</p>
  
  <pre><code>File "----", line 166, in main
  struct.pack('&gt;256s', *master_header)
  struct.error: pack expected 1 items for packing (got 256)
  </code></pre>
  
  <p>Now, reading from <a href="http://www.python.org/doc//current/library/struct.html" rel="nofollow">here</a> I seem to be using it right. I specify that I'm getting 256 bytes/characters in my string.</p>
  
  <p>I'm using version 3.3.3.</p>