def divisors(num):
    """
    Takes a number and returns all divisors of the number, ordered least to greatest
    :param num: int
    :return: list (int)
    """
    divlist = []
    counter = 0
    for item in range(1, num + 1):
        if num % item == 0:
            divlist.append(item)
            counter = counter + 1

    # Fill in the function and change the return statment.
    return divlist