title: Python find CRC32 of string
body: <p>I tried to get crc32 of a string data type variable but getting the following error.</p>
  
  <pre><code>&gt;&gt;&gt; message='hello world!'
  &gt;&gt;&gt; import binascii
  &gt;&gt;&gt; binascii.crc32(message)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: a bytes-like object is required, not 'str'
  </code></pre>
  
  <p>For a string values it can be done with <code>binascii.crc32(b'hello world!')</code> but I would like to know how to do this for a string data-type variable</p>