You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
numero = input('''Escribe un número
Pulsa 'X' para salir
-->''')
while numero != 'X':
os.system('clear')
try:
numero = int(numero)
lista.append(numero)
except:
os.system('clear')
print('Error, introduce un número')
input('Pulsa una tecla para continuar')
os.system('clear')
numero = input('''Escribe un número
Pulsa 'X' para salir
-->''')
if(len(lista) < 2):
print('Debes introducir al menos 2 números')
else:
lista.sort()
print(lista[len(lista) - 2])
The text was updated successfully, but these errors were encountered:
import os
lista = []
numero = input('''Escribe un número
Pulsa 'X' para salir
-->''')
while numero != 'X':
os.system('clear')
Pulsa 'X' para salir
-->''')
if(len(lista) < 2):
print('Debes introducir al menos 2 números')
else:
lista.sort()
print(lista[len(lista) - 2])
The text was updated successfully, but these errors were encountered: