def larger(num): return num >= 0 arr = [0,1,2]print(all(map(larger, arr)))arr = [-1, 0, 1 ,2]print(all(map(larger, arr)))
Standard input is empty
True False
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!