Challenge: Only Even

Test yourself and implement what you have learned so far in this chapter.

Problem statement

You have to create and populate a list of integers using an already existing list. Multiply each item in the list with 3. The items of the final list should only contain even numbers.

Input

The input is the list integers which you will use to create the array evenList.

integers has already been declared for you.

Output

The output will be the populated evenList.

Sample input

[1,2,3,4,5]

Sample output

[6, 12]

Test yourself

Write your code in the given area. Try the exercise by yourself first, but if you get stuck, the solution has been provided. Good luck!

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy