Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 19, 2020 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/3c1993148a53ce96b245150f1e2256b7 to your computer and use it in GitHub Desktop.
Save parzibyte/3c1993148a53ce96b245150f1e2256b7 to your computer and use it in GitHub Desktop.
numeros = []
for i in range(cantidad):
# Recuerda que range comenzará desde 0, así que imprimimos el número solicitado pero + 1
numero = input(f"Ingresa el número {i + 1}: ")
# Convertir a entero, pues input regresa una cadena
numero = int(numero)
# Lo agregamos al arreglo con append
numeros.append(numero)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment