0
A function which receives a string and returns a value of ourselves different symbols, without register.
f=lambda s='abcA'.lower(): len(set(s)) #It returned 4, but it is necessary to 3.
2 Réponses
+ 1
Solved.
Answer is:
f=lambda s='abcA'.lower(): len(set(map(str.casefold, s)))
0
Maybe it can be made in other way?