Abundant

Abundant, deficient, and perfect numbers
import sys beg=int(sys.argv[1]) end=int(sys.argv[2]) tt = [] for n in range(beg, end+1): for x in range(1,1+n//2): if n%x == 0: tt.append(x) if sum(tt) == n:		 print(str(n) + " is perfect") elif sum(tt) > n:		 print(str(n) + " is abundant") elif sum(tt) < n:		 print(str(n) + " is deficient") tt = []
 * 1) !/usr/bin/python3