Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created December 27, 2019 15:01
Show Gist options
  • Save Fhernd/f716edb05328df1ab1494a85ed428da4 to your computer and use it in GitHub Desktop.
Save Fhernd/f716edb05328df1ab1494a85ed428da4 to your computer and use it in GitHub Desktop.
# Ejercicio 452: Remover todos los elementos de un conjunto con el método de instancia clear().
# Ejercicio 452: Remover todos los elementos de un conjunto con el método de instancia clear().
numeros = set([2, 3, 5, 7])
print(len(numeros))
print(numeros)
print()
numeros.clear()
print(len(numeros))
print(numeros)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment