Created
March 23, 2021 07:47
-
-
Save AnisahTiaraPratiwi/a43002682c441e296198e409a601d21f to your computer and use it in GitHub Desktop.
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
def count_letters(text): | |
result = {} | |
for letter in text: | |
if letter not in letter: | |
result[letter] = 0 | |
result[letter] += 1 | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment