Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 19, 2020 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/25e44167f2c1c392077dcadd65ac17b0 to your computer and use it in GitHub Desktop.
Save parzibyte/25e44167f2c1c392077dcadd65ac17b0 to your computer and use it in GitHub Desktop.
for numero in datos:
clave = str(numero)
# Si no existe...
if not clave in diccionario_conteo:
# lo agregamos:
diccionario_conteo[clave] = 1
# Si ya existe...
else:
# Lo aumentamos
diccionario_conteo[clave] += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment