Created
December 27, 2019 15:47
-
-
Save Fhernd/4fd02a08a8c234f7fe963a00c785c7e3 to your computer and use it in GitHub Desktop.
# Ejercicio 455: Filtrar los elementos de un objeto conjunto con la función filter().
This file contains hidden or 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
# Ejercicio 455: Filtrar los elementos de un objeto conjunto con la función filter(). | |
numeros = set([2, 3, 5, 7, 11, 13, 17, 19]) | |
print(len(numeros)) | |
print(numeros) | |
print() | |
resultado = set(filter(lambda e: e > 7, numeros)) | |
print(resultado) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment