Question

You are designing a function that takes a list of integers and returns a new list containing only the even numbers. What is a good critical thinking step before writing the code?

A Decide on the exact variable names.
B Consider edge cases like an empty list or a list with no even numbers.
C Immediately write the most complex solution.
D Assume the input list will always be sorted.
E Focus only on the positive numbers.
Practice Next

Hey! Ask a query