14 Réponses
+ 2
S=str(input())
L=[]
For i in s:
If i not in L:
L.append(i)
For i in L:
K.append(s.count(i))
K=sorted(K)[::-1]
For i in k:
For j in i:
If i==s.count(j):
Print(j+str(i))
+ 2
+ 2
Wow thanks a lot 🤗🤗
+ 1
Ok ...😇
+ 1
g4
f1z1
This should b ur output friend...which i require..
+ 1
Even i m getting g4 f1 z1 in separate lines ...but what i need is that..alphabets with same count should be sorted and printed in same line...
+ 1
Nice code
0
Please show us your attempt :)
0
I didnt get perfect o/p..😥
0
Selvi. P That's not bad. Important is that we are see that you are working on a code and not just asking for it.
0
U can believe me friend🤗
0
How is this related to my question??
0
Selvi. P If you mean why I asked you for a code: you can read the q&a rules here.
https://www.sololearn.com/discuss/1316935/?ref=app