title: is there a way to know the length of a bytearray variable in python?
body: <p>I have this code:</p>
  
  <pre><code>variable = "FFFF"
  message = bytearray( variable.decode("hex") )
  </code></pre>
  
  <p>after this, I want to perform something like this:</p>
  
  <pre><code>message.len()
  </code></pre>
  
  <p>but it seems that bytearray does not have something like "len()" implemented, is it possible to know the lenght?</p>