N = 12

answer = []

for i in range(2,N+1):
    if N % i == 0:
        answer.append(i)

answer.sort()
print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: