-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
`enteros = [20, 15, 12, 10, 7, 6, 4, 3, 1]
def faltantes(enteros):
faltantes = []
num = max(enteros)
while num > 0:
if num not in enteros:
faltantes.append(num)
num = num - 1
return faltantes
def faltantes_1(enteros):
return [num for num in range(1, max(enteros) + 1) if num not in enteros]
print(faltantes_1(enteros))`
Metadata
Metadata
Assignees
Labels
No labels