Junior — Senior
Selecting even elements from an array using two methods
livecode
Task condition
Implement the selection of even list elements using two different approaches: with list comprehension and through a regular loop using the append method.
Example: Input: [1, 2, 3, 4, 5] Output: [2, 4]