This is the problem I am working on:

1. Write a function that accepts a List of numbers as an argument.
2. Return a new List that includes the only the even numbers.

Here is what I have:

```py
def only_evens(list1):
    evens = []
    for number in list1:
        if (number % 2 == 0):
            evens.append(number)
    return evens

print(only_evens(list1))
only_evens([11, 20, 42, 97])

```

I get the following error: NameError: name 'list1' is not defined

My thought process for solving it was:

1. Create an empty array inside the function to store the numbers
2. Write a for loop to check if the number is even
3. If it's even, append the number to `evens`
4. Return the `evens` array that should be full of the even numbers, and print it
5. Check using random numbers. (I used 11, 20, 42, 97)

I know there are easier methods to solve this than what I am doing, but I am trying to do this by hand to get a solid foundation in functions.