title: permutations of two lists in python
body: <p>I have two lists like:</p>
  
  <pre><code>list1 = ['square','circle','triangle']
  list2 = ['red','green']
  </code></pre>
  
  <p>How can I create all permutations of these lists, like this:</p>
  
  <pre><code>[
    'squarered', 'squaregreen',
    'redsquare', 'greensquare',
    'circlered', 'circlegreen',
    'redcircle', 'greencircle',
    'trianglered', 'trianglegreen',
    'redtriangle', 'greentriangle'
  ]
  </code></pre>
  
  <p>Can I use <code>itertools</code> for this?</p>