Advertisement
GastonPalazzo

Bucles_1 - Ej-3

Aug 31st, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. #main
  2. print('\n|Ej 3|')
  3.  
  4. listaDeNumeros=[0 for x in range(10)]
  5.  
  6. k=0
  7.  
  8. for i in range(2, 21, 2):
  9.     listaDeNumeros[k]=i
  10.     k+=1
  11.  
  12. print(f'\nLista de numeros -> {listaDeNumeros}')
  13.  
  14. print('\nFin de la ejecucion!\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement