Skip to content

Instantly share code, notes, and snippets.

@decklord
Created January 23, 2020 14:34
Show Gist options
  • Save decklord/3dd17499972635b2c858d10d7d260bdc to your computer and use it in GitHub Desktop.
Save decklord/3dd17499972635b2c858d10d7d260bdc to your computer and use it in GitHub Desktop.
First code challenge for Adereso.
Hi, welcome to Adereso's first code challenge.
You need to implement a function called "letter_counter". It's first and only parameter will be called "letters".
The "letter" parameter should be a string and will contain, as it naims states, only letters, like "abcdef".
Your function must output a dictionary with the number of aparition of each letter.
Examples:
"abc" outputs: {"a":1, "b":2, "c":3}
"zaxayyyy" outputs: {"z":1, "a":2, "x":1, "y": 4}
We recomend to implement this in Python or Javascript but you can choose other languages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment