How should I count the exact number of same letters in the input of user ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How should I count the exact number of same letters in the input of user ?

I have to find if user ha s entered the letter two times in input how can I find it?

15th Aug 2020, 12:57 AM
S.G.INGALE
S.G.INGALE - avatar
2 Answers
15th Aug 2020, 4:54 AM
S.G.INGALE
S.G.INGALE - avatar
0
Yupp.. Count them using count() as Mirielle said
15th Aug 2020, 4:31 AM
sarada lakshmi
sarada lakshmi - avatar