# 90 degrees clockwise matrix rotate
def rotate(m):
return list(zip(*m))[::-1]
import codewars_test as test
actual = [(1,2,3),
(4,5,6),
(7,8,9)]
expected = [(3,6,9),
(2,5,8),
(1,4,7)]
@test.it("test 3x3 matrix")
def test():
test.assert_equals(rotate(actual), expected)