编写一个Python程序来查找给定列表中的所有偶数。


[1, 2, 3, 4, 5, 6, 7, 8, 9]
```
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9]

even_nums = []

for num in nums:
    if num % 2 == 0:
        even_nums.append(num)

print(even_nums)
```
输出：
```
[2, 4, 6, 8]
```