Skip to content

Instantly share code, notes, and snippets.

@dogac00
Created March 13, 2018 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogac00/cf6f8c081226811458c4029489c5dde2 to your computer and use it in GitHub Desktop.
Save dogac00/cf6f8c081226811458c4029489c5dde2 to your computer and use it in GitHub Desktop.
First non-repeating character @codewars
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