How to check a character is repeat in the string in python? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

How to check a character is repeat in the string in python?

11th Apr 2020, 8:01 AM
Ramya Thiurmalisamy
Ramya Thiurmalisamy - avatar
2 Respuestas
+ 4
In python, count function returns how many times in it exists in string or lost.. Ex: s="aaaaa" print(s.count('a'))
11th Apr 2020, 8:12 AM
Jayakrishna 🇮🇳