Skip to content

Commit 1eaf1f3

Browse files
authored
Update convert-integer-to-the-sum-of-two-no-zero-integers.py
1 parent 0a74d4b commit 1eaf1f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Python/convert-integer-to-the-sum-of-two-no-zero-integers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ def getNoZeroIntegers(self, n):
99
"""
1010
curr, digits = n, []
1111
while curr:
12-
if curr % 10 == 0 or \
13-
(curr % 10 == 1 and curr != 1):
12+
if curr % 10 == 0 or (curr % 10 == 1 and curr != 1):
1413
digits.append('2')
1514
curr -= 10 # carry
1615
else:

0 commit comments

Comments
 (0)