How should I count the exact number of same letters in the input of user ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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
Shubham Ingale
Shubham Ingale - avatar
2 Réponses
15th Aug 2020, 4:54 AM
Shubham Ingale
Shubham Ingale - avatar
0
Yupp.. Count them using count() as Mirielle said
15th Aug 2020, 4:31 AM
sarada lakshmi
sarada lakshmi - avatar