I have a two-digit number (42 for example) and i have to get a list of bits for every digit like this
[[0, 1, 0, 0], [0, 0, 1, 0]]
how to do that?
I have a two-digit number (42 for example) and i have to get a list of bits for every digit like this
[[0, 1, 0, 0], [0, 0, 1, 0]]
how to do that?