I read of a job interview question to write some code for the following:
Write an efficient function to find the first nonrepeated character in a st
More elegant way
def NotRepeatingCharacter(s): for c in s: if s.find(c) == s.rfind(c): return c return '_'