title: Python - Match elements from different list with irregular length to new list
body: <p>Hey this may be simple but I'm stuck... i have 3 different lists that i want to match up in a certain way but i can´t seam to get it right. The <code>RDBID</code> is a index to separate the strings form each other <code>(ex 1636 19 02 2F has RDBID 1)</code> <code>byte</code> is the nr in which order the string has <code>(ex 1636=0 19=1 02=2 2F=3)</code> and <code>hex</code> is the string that i have to sort from. My problem is that some <code>hex</code> strings are longer then others so i don´t get the right output, so i need in some way count <code>byte</code> to then how many elements i should take from <code>hex</code> and at the same time index every byte+hex with RDBID..</p>
  
  <p>i have tried making separate <code>for loop</code> for each list and then appended everything to a new list, did not work... tried making 3 <code>nested loop</code> in the same way but then every value got printed on separate lines... tried searching for element patterns but did not work either... i´m completely stuck </p>
  
  <pre><code>RDBID = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
  byte = (0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6)
  hex = ('1636', '19', '02', '2F', '1637', '19', '02', '2F', '1631', '19', '02', '2F', '1637', '19', '04', '0A', '1B', '47', 'FF', '1637', '19', '04', '06', '07', '68', 'FF', '1637', '19', '04', '06', '0A', '82', 'FF', '1637', '19', '04', '0A', '78', '56', 'FF','1637', '19', '04', '0A', '78', '56', 'FF', '1637', '19', '04', '0A', '1B', '08', 'FF', '1637', '19', '04', '0A', '1B', '81', 'FF')
  
  how i could like it to get printed/stored in a new_list:
          (1,0,1636)
          (1,1,19)  
          (1,2,02)
          (1,3,27)
          (2,0,1637)
          (2,1,19)
          (2,2,02)
          (2,3,2F)
          (3,0,1631)
          (3,1,19)
          (3,2,02)
          (3,3,2F)
          (4,1,1637)
          (4,2,18)
          (4,3,04)
          (4,4,0A)
          (4,5,1B)
          (4,6,47)
          (4,7,FF)
           .....
  </code></pre>
  
  <p>why i want to store in in that way is because i will write it over to my Access Sql server later
  so now i´m asking for some help, Thanks  </p>