Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def convert(x, N):
y = x % N
x = x // N
if (x == 0):
return [y]
else:
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
You can’t perform that action at this time.