Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def firstNonRepeatingLetter(word):
- for char in word:
- if word.lower().count(char.lower()) == 1 :
- return char
- return ""
- # manuel Testing
- print(firstNonRepeatingLetter("sTreSS"))
- print(firstNonRepeatingLetter("sdasddd"))
- print(firstNonRepeatingLetter("wWw"))
Add Comment
Please, Sign In to add comment