Factor

Calculate the factors of a number in Python
import sys n=int(sys.argv[1]) factors = [] for i in range(1,n+1): if n%i == 0: factors.append(i) print (factors)
 * 1) !/usr/bin/python