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

18th May 2021, 12:04 PM
Sachin Pradhan
Sachin Pradhan - avatar
6 Respostas
19th May 2021, 6:24 AM
Shivam Rawal
+ 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!
18th May 2021, 1:23 PM
Lothar
Lothar - avatar
+ 2
Woow... Awesome.. so much tq bro for help me.
19th May 2021, 4:46 PM
Sachin Pradhan
Sachin Pradhan - avatar
+ 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
18th May 2021, 12:14 PM
Slick
Slick - avatar
+ 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
18th May 2021, 2:10 PM
Sachin Pradhan
Sachin Pradhan - avatar
+ 1
# Or u can simply do word = input() from collections import Counter print(Counter(word))
19th May 2021, 6:24 AM
Shivam Rawal