Tags » Clockwise

Did you know that Venus is the only continent that rotates clockwise?

Did you know that Venus is the only continent that rotates clockwise?

Posted by Damian @8WDee.com

General Knowledge

rotate a matrix

Rotate clockwise:

rotated = zip(*original[::-1])

Rotate counterclockwise:

rotated_ccw = zip(*original)[::-1]

I found this trick in this thread.

Python