We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e6e4e commit ce70641Copy full SHA for ce70641
Python/largest-3-same-digit-number-in-string.py
@@ -29,4 +29,4 @@ def largestGoodInteger(self, num):
29
:type num: str
30
:rtype: str
31
"""
32
- return max(num[i] if num[i] == num[i+1] == num[i+2] else "" for i in xrange(len(num)-2))*3
+ 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