Skip to content

Commit ce70641

Browse files
authored
Update largest-3-same-digit-number-in-string.py
1 parent 35e6e4e commit ce70641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/largest-3-same-digit-number-in-string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ def largestGoodInteger(self, num):
2929
:type num: str
3030
:rtype: str
3131
"""
32-
return max(num[i] if num[i] == num[i+1] == num[i+2] else "" for i in xrange(len(num)-2))*3
32+
return max(num[i] if num[i] == num[i+1] == num[i+2] else '' for i in xrange(len(num)-2))*3

0 commit comments

Comments
 (0)