Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 21, 2022 01:34
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/62528d3ec96e1285ec24925245daf077 to your computer and use it in GitHub Desktop.
Save parzibyte/62528d3ec96e1285ec24925245daf077 to your computer and use it in GitHub Desktop.
diccionario = {}
for letra in cadena:
if not letra in diccionario:
diccionario[letra] = {
"conteo": 0,
}
diccionario[letra]["conteo"] += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment