Created
January 23, 2020 14:34
-
-
Save decklord/3dd17499972635b2c858d10d7d260bdc to your computer and use it in GitHub Desktop.
First code challenge for Adereso.
This file contains 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
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