+ 7

CHALLENGE! Count frequency of letters in a text.

Count frequency of letters in a text. by: Nick Description: Count the frequency of all letters in the text. Display result in alphabetic order Only count characters that are letters Uppercase / lowercase letters viewed as the same letter input> This is the text. output> e appears 2 times h appears 2 times i appears 2 times s appears 2 times t appears 4 times x appears 1 time

30th Dec 2017, 1:06 AM
Nick
Nick - avatar
15 Answers
31st Dec 2017, 2:28 PM
Justine Ogaraku
Justine Ogaraku - avatar
30th Dec 2017, 10:51 AM
LukArToDo
LukArToDo - avatar
30th Dec 2017, 9:07 AM
Vahid Shirbisheh
Vahid Shirbisheh - avatar
30th Dec 2017, 10:34 PM
Ferhat Sevim
Ferhat Sevim - avatar
+ 10
https://code.sololearn.com/cCUU4PYq0tKX/?ref=app
6th Jan 2018, 8:12 PM
Raphael Williams
Raphael Williams - avatar
30th Dec 2017, 3:41 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 7
Hey @Nick, here's my attempt, hope it meets your requirements : ) https://code.sololearn.com/c11MTH3t1zEK/?ref=app
30th Dec 2017, 6:49 AM
Ipang
+ 5
python one liner: from collections import Counter print("\n".join("Letter "+l+" present "+str(v)+" times" for l,v in Counter(input()).items()))
30th Dec 2017, 8:21 AM
VcC
VcC - avatar
30th Dec 2017, 6:17 PM
abdulazizumarovich
abdulazizumarovich - avatar
30th Dec 2017, 12:52 AM
Markus R
Markus R - avatar
30th Dec 2017, 1:25 AM
Bharath_Teki 🇮🇳
Bharath_Teki 🇮🇳 - avatar
+ 4
https://code.sololearn.com/c2h6swgJcpLN/?ref=app
30th Dec 2017, 4:15 AM
Kodirbek Makharov
Kodirbek Makharov - avatar
30th Dec 2017, 2:25 AM
Mario Díaz
Mario Díaz - avatar
+ 2
https://code.sololearn.com/cNT3U2koZUwg/?ref=app
8th Jan 2018, 8:48 AM
...