fork download
  1. def count_neg(a, b):
  2. return len(list(filter(lambda x: x < 0, [a, b])))
  3.  
  4. print(count_neg(-1, 0))
Success #stdin #stdout 0s 9992KB
stdin
Standard input is empty
stdout
1