From 27a0fb93b7febe6f1fa001febc7d9382fcdf886d Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 13 Jul 2019 04:27:11 -0500 Subject: [PATCH] isogram fix --- python/isogram/isogram.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/isogram/isogram.py b/python/isogram/isogram.py index c336281..1677e8a 100644 --- a/python/isogram/isogram.py +++ b/python/isogram/isogram.py @@ -1,2 +1,3 @@ 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) \ No newline at end of file