import numpy as np datalist = [ [1, 2, 3, 4, 5, 6], [5, 0 ,0, 4, 0, 7], [3, 5, 8, 13, 8, 5], [5, 6, 7, 3, 4, 5], [9, 7, 5, 3, 1, 2]] a = np.max(datalist) print(a) # >> 13