Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 28, 2020 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save computer-tutor/79f404a5a71b87c350b194c48e785be1 to your computer and use it in GitHub Desktop.
Save computer-tutor/79f404a5a71b87c350b194c48e785be1 to your computer and use it in GitHub Desktop.
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