Question #264581

  1. Find the non-repeating numbers in a string

Expert's answer

s = input('Enter string: ')
s = list(filter(str.isdecimal, s))
s = list(filter(lambda x: s.count(x) == 1, s))
print(s)
LATEST TUTORIALS
APPROVED BY CLIENTS