def sq(arr): return sum(filter(lambda x: x%3==0,arr)) z=sq([1,2,3,4,5,6])print(z)
Standard input is empty
9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!