elcocodrilotito

n primeros pares listas

Dec 1st, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def n_primeros_pares(n):
  2.     lista=[]
  3.     for i in range(1,n+1):
  4.         lista=lista+[2*i]
  5.     return lista
  6.  
  7. print(n_primeros_pares(50))
Add Comment
Please, Sign In to add comment