title: Rotating a two-dimensional array in Python
body: <p>In a program I'm writing the need to rotate a two-dimensional array came up. Searching for the optimal solution I found this impressive one-liner that does the job:</p>
  
  <pre><code>rotated = zip(*original[::-1])
  </code></pre>
  
  <p>I'm using it in my program now and it works as supposed. My problem though, is that I don't understand how it works.</p>
  
  <p>I'd appreciate if someone could explain how the different functions involved achieves the desired result.</p>