Even Steven

Write a function called evens() that will output all the even numbers in list.

The function will receive a Python list passed in as a parameter. It should display the output to the screen.

Examples:

Bonus

For +20 bonus points, instead of printing the even numbers, the function must return a new list containing only the even numbers. Then you will print them in main().

Bonus Examples:




©2017 Graham Mitchell