Guest User

Untitled

a guest
May 20th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. M = int(input())
  2. C = M*(eval('[' + input() + ']')) #ex : M = 2
  3.  
  4. [1,2,3]
  5. [4,3,5]
  6.  
  7. C = list(zip(C[1]) #juntaria os valores da posição 2 das duas listas [2,3]
  8. sum_1 = sum(i for i in C[1]) #resultaria em 5
Add Comment
Please, Sign In to add comment