0
Each character how many times it is presenting?
Here string s1=('missyoupopaya') The ans will come like, m=1,i=1,s=2,y=2,o=2,u=1,p=2,a=2
6 Answers
+ 4
Sachin Pradhan ,
before we can help you, we like to see your attempt. please put your code in playground and link it here.
if you have not done a try by yourself so far, please do it, put it in playground and link it here.
thanks for your understanding!
+ 2
Woow... Awesome.. so much tq bro for help me.
+ 1
Looping through assinging values in a dictionary, then looping through again to print results should work. What's your code look like?
EDIT: Please only post the same question once
https://www.sololearn.com/Discuss/2787894/?ref=app
+ 1
Bro, i don't know this code how to execute this program. One who my brother is assign to me like these type of job questions so i ask. He knowing me only qsn and ans, he don't tell me how to execute. Pls help me
+ 1
# Or u can simply do
word = input()
from collections import Counter
print(Counter(word))