mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 03:15:01 -06:00
isogram fix
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
def is_isogram(string):
|
def is_isogram(string):
|
||||||
return len(list(set(string))) == len(string)
|
string = ''.join([c for c in string.casefold() if c not in ' -'])
|
||||||
|
return len(list(set(string))) == len(string)
|
||||||
Reference in New Issue
Block a user