Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def convert(x, N):
y = x % N
x = x // N
if (x == 0):
return [y]
return convert(x, N) + [y]
print(convert(10001, 16))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment