#rotate array

def rotateImage(a):
    rotated90 = zip(*a[::-1])
    return rotated90

a = [[1, 2, 3],
     [4, 5, 6],
     [7, 8, 9]]
     
print rotateImage(a)
c9c1aa105d51a788dd92952469063797527958a6
#rotate array

def rotateImage(a):
    rotated90 = zip(*a[::-1])
    return rotated90

a = [[1, 2, 3],
     [4, 5, 6],
     [7, 8, 9]]
     
print rotateImage(a)