Largest int from concatenated ints: Difference between revisions

m
adding closing parenthesis missing from iterator in for loop.
(Added back Arturo solution.)
m (adding closing parenthesis missing from iterator in for loop.)
Line 1,857:
key=cmp_to_key(lambda x,y:cmp(y+x, x+y))))
 
for numbers in [(1, 34, 3, 98, 9, 76, 45, 4), (54, 546, 548, 60)]:
print('Numbers: %r\n Largest integer: %15s' % (numbers, maxnum(numbers)))</lang>
 
Anonymous user