class Solution:
def FirstNotRepeatingChar(self, s):
# write code here
for x in s:
if s.count(x) == 1:
return s.index(x)
if not s.index(x):
return -1
class Solution:
def FirstNotRepeatingChar(self, s):
# write code here
for x in s:
if s.count(x) == 1:
return s.index(x)
if not s.index(x):
return -1