title: How to get all combination of n binary value?
body: <p>In Python, how can I get all combinations of <code>n</code> binary values <code>0</code> and <code>1</code>?</p>
  
  <p>For example, if <code>n = 3</code>, I want to have</p>
  
  <pre><code>[ [0,0,0], [0,0,1], [0,1,0], [0,1,1], ... [1,1,1] ]  #total 2^3 combinations
  </code></pre>
  
  <p>How can I do this?</p>