-
-
Save parzibyte/3c1993148a53ce96b245150f1e2256b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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