Index finite lists of positive integers: Difference between revisions

→‎{{header|Python}}: "out" was not defined. Probably meant "s"
(Go solution)
(→‎{{header|Python}}: "out" was not defined. Probably meant "s")
Line 188:
s = ''
while n: s,n = "0123456789a"[n%11] + s, n//11
return map(int, outs.split('a'))
 
l = [1, 2, 3, 10, 100, 987654321]
1,934

edits