mouredev/Weekly-Challenge-2022-Kotlin

Solución Reto #32 Python

luisbeltrancondori opened this issue · 0 comments

lista_numero = [-6,8,0,4,8.1,20,21,12,11,52,49]

def mayor():
mayor = 0
for num in lista_numero:
if(num > mayor):
mayor = num
return mayor

mayor = mayor()

print('El numero mayor de la lista es :',mayor)

lista_numero.sort(reverse = True)
print('El seguno numero mas grande es :',lista_numero[1])