Suggest a way to make this Python function more efficient:
def divide(nums):
    result = []
    for num in nums:
        if num % 2 == 0:
            result.append(num)
    return result
def divide(nums):
    return [num for num in nums if num % 2 == 0]