How to check a character is repeat in the string in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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 🇮🇳