This file contains hidden or 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
| #!/usr/bin/python | |
| import datetime | |
| class FilterModule(object): | |
| def filters(self): | |
| return { | |
| 'rfc3339_to_utc': self.rfc3339_to_utc | |
| } |
This file contains hidden or 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} |
OlderNewer