test2_list = [[], [3], [1,2], [2,4], [1,2,3], [2,3,4]]
maxList = max((x) for x in test2_list)
I am getting output as [3]
, but it should be [2,3,4]
.
test2_list = [[], [3], [1,2], [2,4], [1,2,3], [2,3,4]]
maxList = max((x) for x in test2_list)
I am getting output as [3]
, but it should be [2,3,4]
.