def scalar_product(scalar, vector):
    for x in range(len(vector)):
        vector[x] *= scalar
    return vector
def scalar_product(scalar, vector):
    for x in range(len(vector)):
        vector[x] *= scalar
    return vector