I want to print the highest number from my list (1231
here).
I tried doing this here (posted below), but that doesn't work. It just shows the highest total number for each element in my list, which is, obviously, not what I want.
list = [ [1,3,251], [2], [1231,52,22] ]
for i in range(len(list)):
for j in range(len(list[i])):
print(max(list))
prints:
[1231, 52, 22]
[1231, 52, 22]
[1231, 52, 22]
[1231, 52, 22]
[1231, 52, 22]
[1231, 52, 22]
[1231, 52, 22]