Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
L = list(map(int, input('Enter list of integers : ').split()))
M = list(map(int, input('Enter list of integers : ').split()))
if len(L) == len(M):
N = [L[i]+M[i] for i in range(len(L))]
print(N)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment