def count_neg(a, b): return len(list(filter(lambda x: x < 0, [a, b]))) print(count_neg(-1, 0))
Standard input is empty
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!