
import itertools
import operator

# A = [
#   [1,2,3],
#   [4,5,6],
#   [7,8,9]
# ]

# print(A[::-1])
# print(list(zip(*A[::-1])))
# print([[row[i] for row in A] for i in range(len(A))])
# print([[row[i] for row in A][::-1] for i in range(len(A))])
# print([[row[i] for row in A[::-1]] for i in range(len(A))])
# a = [1,2,3,4,5]
# print(a[:13])
# l = [1,2,3,4,5]
# print(list(itertools.accumulate(l,operator.mul)))
# print(list(itertools.accumulate(l, lambda a,b: a*b)))
# print(list(itertools.product([1,2], l, ["a","b"])))
