Created
March 13, 2018 22:31
-
-
Save dogac00/cf6f8c081226811458c4029489c5dde2 to your computer and use it in GitHub Desktop.
First non-repeating character @codewars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def first_non_repeating_letter(string): | |
for i in string: | |
if(string.lower().count(i.lower())==1): | |
return i | |
return "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment