def rotateLeft(arr): A = list(map(list,(zip(*arr))))[::-1] return A
def checkRepeat(plays): return plays != set(plays)