def convert_to_factors(die):
    """Converts a sympy factor_list tuple to a list of the factors and returns the list"""
    sub_list = die[1] # Create a list from the tuple
    factor_list = []
    for i in sub_list: # Iterate through the `sub_list` which contains all the factors
        for j in range(i[1]): # Nesting checks the power of each factor and puts it in multiple times
            factor_list.append(i[0]) # The factor is stored in the first element of a tuple in each `sub_list` element

    return factor_list