Fixed this code, | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
3rd May 2022, 3:25 AM
Najmul Huda
Najmul Huda - avatar
1 Answer
+ 3
text = input() dict = {} for x in text: if x in dict: dict[x] = dict[x]+1 else: dict[x] = 1 print(dict)
3rd May 2022, 4:28 AM
ㅤㅤㅤㅤ
ㅤㅤㅤㅤ - avatar