import math


def find_divs_for_num(num):
    """Function can find all divisors for number"""

    if num%2 == 0:

        lst = []
        for i in range(1, int(num / 2) + 1):
            if num%i == 0:
                lst.append(i)

        return lst

    else:

        lst = []
        for i in range(1, int(math.sqrt(num)), +2):
            if num%i == 0:
                lst.append(i)

        return lst