Skip to content

Commit 64f7d7f

Browse files
authored
Update abbreviating-the-product-of-a-range.py
1 parent 6204618 commit 64f7d7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/abbreviating-the-product-of-a-range.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def abbreviateProduct(self, left, right):
2424
if q:
2525
abbr = True
2626
if not abbr:
27-
return '%se%s' % (curr, zeros)
27+
return "%se%s" % (curr, zeros)
2828
decimal = reduce(lambda x, y: (x+y)%1, (math.log10(i) for i in xrange(left, right+1)))
2929
prefix = str(int(10**(decimal+(PREFIX_LEN-1))))
3030
suffix = str(curr % 10**SUFFIX_LEN).zfill(SUFFIX_LEN)
31-
return '%s...%se%s' % (prefix, suffix, zeros)
31+
return "%s...%se%s" % (prefix, suffix, zeros)

0 commit comments

Comments
 (0)