LearnPy Hub
← NumPy problems
Medium

Dot Product

Read two vectors of the same length and print their dot product.

Input

Two lines of integers.

Output

One number.

Sample 1

Input
1 2 3
4 5 6
Output
32

Sample 2

Input
5
5
Output
25
solution.py
Output appears here
Dot Product · Python practice problem · LearnPy Hub