How to check a character is repeat in the string in python? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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 šŸ‡®šŸ‡³