Upside-down numbers: Difference between revisions

m
→‎{{header|Python}}: no need for sorted
(→‎{{header|ALGOL 68}}: typo, comment)
m (→‎{{header|Python}}: no need for sorted)
Line 771:
else:
# build next odds, but switch to evens
odds = sorted([hi * 10**(ndigits + 1) + 10 *
i + lo for ihi, lo in oddswrappings for hi, loi in wrappingsodds])
ndigits += 1
odd_index = 0
Line 781:
else:
# build next evens, but switch to odds
evens = sorted([hi * 10**(ndigits + 1) + 10 *
i + lo for ihi, lo in evenswrappings for hi, loi in wrappingsevens])
ndigits += 1
even_index = 0 even_index = 0
 
 
4,111

edits