#clockwise: rotated = list(zip(*original[::-1])) #counterclockwise: rotated_ccw = list(zip(*original))[::-1]
rotated = list(zip(*original[::-1]))