LearnPy Hub
← NumPy problems
Easy

Add Two Arrays

Read two lines of integers of the same length into arrays and print their element-wise sum as a list.

Input

Two lines.

Output

A Python list.

Sample 1

Input
1 2 3
4 5 6
Output
[5, 7, 9]

Sample 2

Input
10
-10
Output
[0]
solution.py
Output appears here
Add Two Arrays · Python practice problem · LearnPy Hub