Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I don't understand what you mean by "The Hex function in python doesn't do that".
hex(10)
'0xa'
hex(12)
'0xc'
I get the same on Python 2.7 and 3.6. Or did I miss something?
well you can always rely on printf
%x
(or%X
for uppercase) :"%x" % my_digit
Otherwise
(list(range(0,10)) + [char(c) for c in range(ord('A'), ord('Z')])[my_digit]
will work up to base 36, but I think you were looking for the first one.google is your friend... https://en.wikipedia.org/wiki/Hexadecimal
(and no need to scream like that... x) )