+ 1
How to detect duplicate letter in a string? python3
as the question, when we asking for input, and how do we detect if there is any duplicate character in python3
7 Answers
+ 9
Check this out:
https://code.sololearn.com/cSv8l4QreX8S/?ref=app
+ 6
When you say duplicate letter, what do you mean? In general? Consecutively? For example, "Tree" has duplicate letters that are consecutive. Whereas the word "consecutive" has duplicate letters but they're not consecutive.
+ 6
Sets automatically remove duplicates, and could reveal dups with respect to their final size. This may work If you don't need to identify which character is duplicated.
+ 1
Hi,
If we are asked to enter 26 letter in the alphabet in any order, how do we detect if there is duplicate character in the string.
I have achieve anything else but detecting duplicate characters in the string.
Appreciated
+ 1
This is my code so far,
Appreciated