def divisors(num):
    """
    Takes a number and returns all divisors of the number, ordered least to greatest
    :param num: int
    :return: list (int)
    """
    # Fill in the function and change the return statment.
    numlist = []
    check = 1
    while check <=num:
        divisor = num%check
        if divisor == 0:
            numlist.append(check)
            check = check + 1
        else:
            check = check + 1
    return numlist