array = [[10,20,30,40],[50,60,70,80],[5,6,7,8],[100,200,300,400],[9,15,25,30]]result = [i for i in array if sum(i) < 100]print(result)
Standard input is empty
[[5, 6, 7, 8], [9, 15, 25, 30]]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!