You can use the filter method: >>> lst = [1, 2, 3, 4, 5] >>> filter(lambda x: x % 2 == 0, lst) [2, 4]. or a list comprehension: >>> lst = [1, 2, 3, 4, ... ... <看更多>
in AWS Lambda. It also contains the code to run in Lambda to generate these lists. In addition there is a less_verbose module in the code that you can ... ... <看更多>