title: How to "assemble" a python variable name using another variable?
body: <p>From a given library, I would read data like:</p>
  <pre><code>data = msg.chan6_raw 
  </code></pre>
  <p>The msg looks like:</p>
  <pre><code>RC_CHANNELS {
    time_boot_ms : 1730680, 
    chancount : 16, 
    chan1_raw : 1500, 
    chan2_raw : 1500, 
    chan3_raw : 1000, 
    chan4_raw : 1500, 
    chan5_raw : 1800, 
    chan6_raw : 1000, 
    chan7_raw : 1000, 
    chan8_raw : 1800, 
    chan9_raw : 0, 
    chan10_raw : 0, 
    chan11_raw : 0, 
    chan12_raw : 0, 
    chan13_raw : 0, 
    chan14_raw : 0, 
    chan15_raw : 0, 
    chan16_raw : 0, 
    chan17_raw : 0, 
    chan18_raw : 0, 
    rssi : 0
  }
  </code></pre>
  <p>My code knows that I would like to read channel &quot;6&quot; which is in a variable named &quot;number&quot;.</p>
  <p>I can't do:</p>
  <pre><code>data = 'msg.chan' + str(number) + '_raw'
  </code></pre>
  <p>But that is the desired result.</p>
  <p>So the question is: how can I &quot;assemble&quot; this request, based on &quot;number&quot;  - to fetch the correct data?</p>