Anonymous user
Non-decimal radices/Convert: Difference between revisions
m
→{{header|Python}}: Split long line
(Added PicoLisp) |
m (→{{header|Python}}: Split long line) |
||
Line 849:
=={{header|Python}}==
<lang python>def baseN(num,b):
return (((num == 0) and "0" )
or ( baseN(num // b, b).lstrip("0")
+ "0123456789abcdefghijklmnopqrstuvwxyz"[num % b]))
# alternatively:
|