t = [[3,4,5,1],[33,6,1,2]] x = t[0][0] for i in range(len(t)): for j in range(len(t[i])): if x < t[i][j]: x = t[i][j]