Construct a python code to convert a number in base 10 to binary
No input.
def convert_base10_to_binary(num):
    binary_num = []
    while (num > 0): 
        binary_num.append(num % 2)
        num //= 2
  
    binary_num.reverse() 
    return binary_num