title: How to append item to match the length of two list in python
body: <p>I am working on a python script which is connected to a server. Every x min, server returns two list but the length of these list is not same. For ex:</p>
  <pre><code>a = [8, 10, 1, 34]
  b = [4, 6, 8]
  </code></pre>
  <p>As you can see above that a is of length 4 and b is of length 3. Simillarly sometime it returns</p>
  <pre><code>a = [3, 6, 4, 5]
  b = [8, 3, 5, 2, 9, 3]
  </code></pre>
  <p>I have to write a logic where I have to check if length of these two list is not same, then add the <code>0</code> at the end of the list which is smaller than other list. So for ex, if input is:</p>
  <pre><code>a = [3, 6, 4, 5]
  b = [8, 3, 5, 2, 9, 3]
  </code></pre>
  <p>then output will be:</p>
  <pre><code>a = [3, 6, 4, 5, 0, 0]
  b = [8, 3, 5, 2, 9, 3]
  </code></pre>
  <p>Can anyone please help me with these. Thanks</p>