Python: List Comprehension: Inner Product

Write the function inner_product that takes two lists lst1 and lst2 and returns their inner product. Input lists have the same length. The inner product of two $$n$$-dimentional vectors is obtained as:

$$\sum _{i=1}^{n}x_{i}y_{i}=x_{1}y_{1}+\cdots +x_{n}y_{n}$$
inner_product([1, 2, 3], [6, 7, 8]) -> 44


Test 1

Test 2

Test 3

Test 4