#PF-Prac-21
def check_numbers(num1,num2):
    num_list = []
    count = 0
    for i in range(num1, (num2 // 2) + 1):

        num_list.extend([x for x in range(i + 1, num2 + 1) if x % i == 0])
        print(num_list)

    num_list = set(num_list)
    count = len(num_list)

    return [num_list, count]

num1=2
num2=20
print(check_numbers(num1, num2))
