N = [1,2,3,4,5] B = len([i for i in N if i > 2]) print(B)
Standard input is empty
3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!