Sunday, September 1, 2013

Rotating a two-dimensional array in Python

Simple and concise way in Python : rotated = zip(*original[::-1])

Rotating a two-dimensional array in Python - Stack Overflow

 

No comments:

Post a Comment