Skip to content

Commit 499ebbe

Browse files
authored
Update self-dividing-numbers.py
1 parent e4b78d7 commit 499ebbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/self-dividing-numbers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def selfDividingNumbers(self, left, right):
3232
:rtype: List[int]
3333
"""
3434
return [num for num in xrange(left, right+1) \
35-
if not any(itertools.imap(lambda x: int(x) == 0 or num%int(x) != 0, str(num)))]
35+
if not any(itertools.imap(lambda x: int(x) == 0 or num%int(x) != 0, str(num)))]

0 commit comments

Comments
 (0)