Guest User

Untitled

a guest
Dec 12th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def firstNonRepeatingLetter(word):
  2. for char in word:
  3. if word.lower().count(char.lower()) == 1 :
  4. return char
  5. return ""
  6. # manuel Testing
  7. print(firstNonRepeatingLetter("sTreSS"))
  8. print(firstNonRepeatingLetter("sdasddd"))
  9. print(firstNonRepeatingLetter("wWw"))
Add Comment
Please, Sign In to add comment