This function receives as a parameter an integer and should return a list representing the same value expressed in binary as a list of bits, where the first element in the l
Just for fun - the solution as a recursive one-liner:
def tobin(x): return tobin(x/2) + [x%2] if x > 1 else [x]