import math def factors(n): l=[] for i in range(1,int(math.sqrt(n))): if(n%i==0): if(n//i==i): l.append(i) else: l.append(i) l.append(n//i) return l print(factors(100))
To embed this program on your website, copy the following code and paste it into your website's HTML: