title: Convert list of integers into list of binary digits
body: <p>Create a function that takes as input a list of integers, and which outputs a list of the binary digit lists obtained from your <code>integertobinary()</code> function. The order in which the binary digit lists appear should match the order of the list of input integers.</p>
  <p>For example, if the input to your function is <code>[14,3,8,5]</code> the output should be <code>[[1,1,1,0],[1,1],[1,0,0,0],[1,0,1]]</code>.</p>
  <p>Here is what I have done so far:</p>
  <pre><code>def integertobinary(L): 
      for n in L:
          y = []
          while(n&gt;0):
              a=n%2
              y.append(a)
              n=n//2
          y.reverse()
      return y
  
      print(integertobinary([5,6,7,8,9]))
  </code></pre>
  <p>As a result, I am getting: <code>[1, 0, 0, 1]</code> when I am supposed to get <code>[[1,1,1,0],[1,1],[1,0,0,0],[1,0,1]]</code>. What am I doing wrong?</p>