Skip to content

Instantly share code, notes, and snippets.

@ysnerdem
Created January 17, 2018 22:31
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 ysnerdem/c8be5ebb44d4167410181f6be3f49d54 to your computer and use it in GitHub Desktop.
Save ysnerdem/c8be5ebb44d4167410181f6be3f49d54 to your computer and use it in GitHub Desktop.
s = "asdfaksjdşfıoqnfxcvçmaldmfgjdghfgqyewb"
letter_count = {}
for i in s:
if i in letter_count:
letter_count[i] += 1
else:
letter_count[i] = 1
for i, j in letter_count.items():
print("{} is {} times.".format(i, j))
print(" *** ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment