def square_list(nums):
    squares = []
    for num in nums:
        squares = squares + [num**2]
    return squares

def only_even(nums):
    evens = []
    for num in nums:
        if num % 2 == 0:
            evens = evens + [num]
    return evens

def maybe_inner_product(nums):
    """
    Maybe because Jeremy has no clue what he's talking about when it comes
    to linear algebra
    """
    product = 1
    for num in nums:
        product = product * num
    return product

def dot_product(nums1, nums2):
    """
    If nums1 and nums2 are NOT the same length, the output of this function
    is undefined
    """
    product = []
    for counter in range(len(nums1)):
        product = product + [nums1[counter] * nums2[counter]]
    return product
