A simple solution:
def reversemat(mat):
return [row[::-1] for row in mat]
print(reversemat([[1,0],[1,0]]))
# [[0, 1], [0, 1]]
besides, you have returned nothing from your function, so you will get None from your second print.
3
solved Reverse of a list of list in Python [closed]